create *item-selector* xml and keep that xml in drawable folder and finally use that as background of image button
On Fri, Sep 18, 2009 at 7:13 AM, sdphil <[email protected]> wrote: > > I want to change the android:background value when an image button is > selected (selected, not clicked). What's the easiest way to do that? > I think I could create a derived class and override onDraw, but isn't > there something like onClickListener() where I can get notified when > the focus for that button changes? onFocusListener? > > tia. > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

