You can control the graphics used for a button by making your own
copies of Android's base/core/res/res/drawable/btn_default.xml file,
specifying whatever drawables you like for various states in them,
then changing the background on the buttons you want to change.

On May 7, 10:20 am, kramasundar <[email protected]> wrote:
> Hi guys,
>
> whenever a button is clicked the default behavior is that the
> button's  background changes to yellow in color.
>
> Is it possible to override this?
>
> eg. in a game if the user clicks a "ok" button and if his answer/
> choice is correct, then the ok button should change to "green" color
> just for fraction of a second (by default it is the yellow color on
> button click in android). And if the answer is wrong then it should be
> "red" in color.
>
> any hints pls?
>
> Thanks,
> Ramsundar
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group 
> athttp://groups.google.com/group/android-developers?hl=en

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

Reply via email to