[android-developers] Re: orange in R.color ?

2009-02-14 Thread gsmd
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-developers] Re: orange in R.color ?

2009-01-29 Thread Chander Pechetty
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

[android-developers] Re: orange in R.color ?

2009-01-28 Thread gsmd
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

[android-developers] Re: orange in R.color ?

2009-01-17 Thread android_soft
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.

[android-developers] Re: orange in R.color ?

2009-01-16 Thread Dianne Hackborn
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

[android-developers] Re: orange in R.color ?

2009-01-16 Thread gsmd
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

[android-developers] Re: orange in R.color ?

2009-01-16 Thread Dianne Hackborn
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?