On Sun, Mar 13, 2011 at 10:33 AM, Marshall Farrier
<[email protected]> wrote:
> I’m trying to make a RadioGroup with active games where there is a message
> “Your move!” beside those games where it is your move. So, I modified my
> RadioGroup to have LinearLayouts with horizontal orientation as immediate
> children, then nest the RadioButtons inside those along with a TextView that
> has the appropriate message where needed. Unfortunately, when I put the
> LinearLayout between the RadioButtons and the RadioGroup in the hierarchy,
> the RadioGroup OnClickListener() stopped working.

This is a long-standing issue. You need to have your RadioButtons be
immediate children of your RadioGroup.

Or, create your own RadioGroup with the smarts to look down the
hierarchy for RadioButton children.

Or, redesign your UI such that you do not need LinearLayouts in
between the RadioGroup and the RadioButtons. In your case, you could
simply use string concatenation to combine the radio button text with
your "message".

Or, don't use RadioButtons.

There may be other options, but these should give you grist for the
proverbial mill.

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

Android 3.0 Programming Books: http://commonsware.com/books

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