Discussion:
RadioGroup over two columns or rows?
Julian Bunn
2010-05-15 17:27:13 UTC
Permalink
I create a set of RadioButtons in a RadioGroup on the fly (no XML),
and would like to arrange them in either two columns or two rows -
right now they are in a single column. I could of course create two
sets of RadioButtons, and place each in a different RadioGroup view,
but presumably then I would have to control the active state of each
button by taking into account both views.

Does anyone have an idea how to better do this?

Thanks!
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-***@googlegroups.com
To unsubscribe from this group, send email to
android-developers+***@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
TreKing
2010-05-17 01:43:03 UTC
Permalink
Post by Julian Bunn
Does anyone have an idea how to better do this?
If I understand your question correctly, I don't think there is a better
way.

-------------------------------------------------------------------------------------------------
TreKing - Chicago transit tracking app for Android-powered devices
http://sites.google.com/site/rezmobileapps/treking
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-***@googlegroups.com
To unsubscribe from this group, send email to
android-developers+***@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
jjbunn
2010-05-17 05:03:50 UTC
Permalink
Thanks ... I worked around my problem by using a ScrollView for the
RadioGroup.
Post by TreKing
Post by Julian Bunn
Does anyone have an idea how to better do this?
If I understand your question correctly, I don't think there is a better
way.
-------------------------------------------------------------------------------------------------
TreKing - Chicago transit tracking app for Android-powered deviceshttp://sites.google.com/site/rezmobileapps/treking
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To unsubscribe from this group, send email to
For more options, visit this group athttp://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-***@googlegroups.com
To unsubscribe from this group, send email to
android-developers+***@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
m2k
2010-05-19 17:46:51 UTC
Permalink
hey,
Post by Julian Bunn
I create a set of RadioButtons in a RadioGroup on the fly (no XML),
and would like to arrange them in either two columns or two rows -
right now they are in a single column. I could of course create two
sets of RadioButtons, and place each in a different RadioGroup view,
but presumably then I would have to control the active state of each
button by taking into account both views.
Does anyone have an idea how to better do this?
Thanks!
i faced the same problem :)

but there's an easy solution :) combine a radio group with a relative
layout and align the radio button within :))
just with leftOf , rightOf , below, above :)

works great :)

gl && have fun :)
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-***@googlegroups.com
To unsubscribe from this group, send email to
android-developers+***@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
Loading...