Thursday, August 30, 2012

Re: [android-developers] button change onClick

Use a statelist drawable, also known as a selector:
http://developer.android.com/guide/topics/resources/drawable-resource.html#StateList

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Thu, Aug 30, 2012 at 11:47 AM, oriolmesia <mesia.ose@gmail.com> wrote:
Hi guys, I have an issue with the final tweak of my new app.

Now that I'm nearly to finish I'm looking to improve my interface. What I want it's just to see how my buttons change when someone pressed on them, only for the amount of time that the button remain pressed.

The buttons on my app are image buttons with some text situated on them.


The only way to do that it's to change the button image or the text over the button? What kind of event I need to use, onClick method here it's useless?



Thank you for your help,



Oriol

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment