Thanks.
Unfortunately, this doesn't seem to work out.
Here's a sample TextView that I inflate:
--
TextView
xmlns:android=http://schemas.android.com/apk/res/android;
android:textAppearance=?android:attr/textAppearanceMedium
android:gravity=center
android:background=@android:drawable/list_selector_background and
use it as indicated by Dianne above...
Cheers
Chander
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this
Thanks, I'll have a try.
Do you know a way to achieve the same in .xml?
On Jan 17, 5:41 pm, android_soft cspeche...@gmail.com wrote:
getBaseContext().getResources().getDrawable
(android.R.drawable.list_selector_background)
On Jan 17, 2:49 am,gsmdgsm...@gmail.com wrote:
Thanks! Could you
getBaseContext().getResources().getDrawable
(android.R.drawable.list_selector_background)
On Jan 17, 2:49 am, gsmd gsm...@gmail.com wrote:
Thanks! Could you plz suggest how to dynamically set TextView
background to orange? Googling for setCompoundDrawables doesn't lead
to any solution.
TIA.
It's not a color, it's a drawable.
On Fri, Jan 16, 2009 at 1:26 PM, gsmd gsm...@gmail.com wrote:
Where's the color used for selection e.g. in ListView?
TIA.
--
Dianne Hackborn
Android framework engineer
hack...@android.com
Note: please don't send private questions to me, as I don't
Thanks! Could you plz suggest how to dynamically set TextView
background to orange? Googling for setCompoundDrawables doesn't lead
to any solution.
TIA.
On Jan 16, 11:31 pm, Dianne Hackborn hack...@android.com wrote:
It's not a color, it's a drawable.
On Fri, Jan 16, 2009 at 1:26 PM, gsmd
You can't do that, you have to set the entire background to a Drawable that
provides the entire frame as well as background of the content area.
On Fri, Jan 16, 2009 at 1:49 PM, gsmd gsm...@gmail.com wrote:
Thanks! Could you plz suggest how to dynamically set TextView
background to orange?
7 matches
Mail list logo