[android-developers] Re: Change button color on Focus and on click

2009-10-17 Thread Farproc
res/drawable/my_multi_state_bg.xml http://schemas.android.com/apk/res/android";> Point to that as in android:background="@drawable/my_multi_state_bg" or through java code wherever u please. On 10月16日, 下午6时39分, Shoby wrote: > Hi Farproc, > > Could you please provide a sample c

[android-developers] Re: Change button color on Focus and on click

2009-10-16 Thread Farproc
There was a post about that in this group, but I can't find it now!! Very wired You can search for "how to make a view touchable visiually". If u find it, you will see how to set different backgrounds in different states(pressed, long pressed, focused, etc). Furthermore, if these drawables yo

[android-developers] Re: Change button color on Focus and on click

2009-10-16 Thread Shoby
Hi Farproc, Could you please provide a sample code or a link to a sample code for the same? Thanks, Shoby On Oct 16, 3:04 pm, Farproc wrote: > Set button's background to a StateListDrawable object or xml resource. > > Here is a sample to use StateListDrawable resource. It's very easy you

[android-developers] Re: Change button color on Focus and on click

2009-10-16 Thread Farproc
Set button's background to a StateListDrawable object or xml resource. Here is a sample to use StateListDrawable resource. It's very easy you event do not need to write the listeners!!! On 10月16日, 下午5时43分, Shoby wrote: > Hi i am developing an application that has a button whose color should > c