i want to create a TextView with compound Bitmap, i know android support creating TextView with compound drawables but i want to compound Bitmap as i downloaded images online
note : i don’t want to make LinearLayout holds imageview and textview
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Here’s how to do it in XML code. This adds a
Drawableat the top. You can change it to left, right or bottom:Edit
Sorry, totally misread your question. You can do this in code by creating a BitmapDrawable and then using that as a compound Drawable. More info here: http://developer.android.com/reference/android/graphics/drawable/BitmapDrawable.html