Tuesday, October 18, 2011

Re: [android-developers] [HELP] Use TextView as a RadioButton

On Sun, Oct 16, 2011 at 1:31 PM, Igor Araujo <igor.araujo91@gmail.com> wrote:
So, I want to know: There is a way to make the TextView selection become "permanent"? 

Handle the touch / click event and update the style as you see fit.
 
Or even better: there's a way to make it works as a RadioButton? (Or use one RadioButton with a selection square margin instead of that selection circle?)

The circle is simply the RadioButton's default drawable. You can change it at will. See the RadioGroup docs and search through the SDK resources where you can see how it's defined (using a StateListDrawable for its various states).

-------------------------------------------------------------------------------------------------
TreKing - Chicago transit tracking app for Android-powered devices

--
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