Make it be a TextView and a CheckedTextView with the appropriate
style. You can find the android.R.layout.simple_spinner_dropdown_item
definition in your SDK (platforms/.../data/res/layout) -- copy that
and adjust to suit.

On Wed, Oct 12, 2011 at 9:08 AM, Aman <aman...@gmail.com> wrote:
> I want to create a Spinner with each item having two TextViews and a
> RadioButton. It is similar to the default Spinner item, the only
> difference is presence of a second TextView with smaller font. It
> describes the content of that item. Now, I am easily able to create a
> Spinner item with two TextViews but when I add a RadioButton the whole
> UI doesn't work. After adding the RadioButton, the Spinner dialog
> doesn't get dismissed on clicking an item. I am assuming that maybe
> the RadioButton is consuming the item click event but not sure about
> that. Has anyone tried something like this before? Basically a custom
> Spinner item with RadioButton in it's original place.
>
> --
> 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+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Warescription: Three Android Books, Plus Updates, One Low Price!

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to