On Feb 18, 6:18 am, Gregory Moore <gregoryamoore...@gmail.com> wrote:
> I am using setCompoundDrawables on the TextView to set an image above
> the text.   I would like to set a background on just the text part of
> the TextView to ensure it is visible on various backgrounds.  From
> your response it seems that their is a way to set the background just
> for the text?  "TextView has text & background drawable..."

TextView has android:background attribute

you can set it to any @rawable/* or #xxx solid color from xml

if you want both solid color & image you can creade e.g. LayerDrawable
containing several primitive drawables

pskink

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to