I want to display text ,images in single View . kindly help me also i want to give src of image from my class instead of xml kindly help thank you
Asked
Active
Viewed 347 times
3 Answers
1
You can use Button
for this
Button b=new Button(this);
b.setText(" Button");
b.setCompoundDrawablesWithIntrinsicBounds(null, getResources().getDrawable(R.drawable.btn_call), null, null);
0
You should try to use a normal button with drawableLeft / drawableRight / drawableTop / drawableBotton attribute.
See a sample here: How to create button with image & text