Okay, grandchildren wont work then.
Back to my work-around.
I realised the problem from before, what I was doing was:
public void onCheckedChanged(RadioGroup group, int checkedId){
if (group = topRowGroup){
bottomRowGroup.clearCheck();
}
else{
topRowGroup.clearCheck();
}
}
What I had not thought about is that clearCheck() results in
onCheckChanged being called, which results in my top if-statement
causing the null pointer exception.
On Nov 21, 7:11 pm, Mark Murphy <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] wrote:
> > Thanks Mark for another speedy reply.
>
> > I actually tried this. Once the radio buttons are contained within a
> > linearlayout, they seem to stop functioning as part of my radiogroup
> > despite the linearlayout being nested inside the radiogroup.
>
> Hmmmm...
>
> According to:
>
> http://code.google.com/p/android/issues/detail?id=1214
>
> "RadioButtons have to be direct children of RadioGroup"
>
> While you and I might consider this to be a bug, it may be more a design
> limitation, which is why this issue was declined.
>
> --
> Mark Murphy (a Commons Guy)http://commonsware.com
>
> Android Training on the Ranch! -- Mar 16-20,
> 2009http://www.bignerdranch.com/schedule.shtml
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" 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-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---