Horizontal RadioGroup

by kaloer » Mon, 13 Apr 2009 12:14:20 GMT

Sponsored Links
I'm new to Android Developing, and don't know how to list the
RadioButtons in a RadioGroup horizontal instead of the default
vertical way.

Default it is like this:
(o) XX
(o) XX
(o) XX

How can i do this:
(o) X (o) X (o) X

I am doing the layout in code, so please answer using that instead of
xml :-)

Best Regards


Horizontal RadioGroup

by Ralf » Mon, 13 Apr 2009 13:49:55 GMT

 RadioGroup inherits from LinearLayout, so you should be able to simply
use android:orientation="horizontal" in your XML or the corresponding
java code (disclaimer: I've never tried to do so, but it seems



Sponsored Links

Horizontal RadioGroup

by kaloer » Mon, 13 Apr 2009 15:33:19 GMT

 Thank you,
I already had tried the getOrientation method, but did not know how to
use it. But i found out, that you simply write getOrientation(0) for
horizontal and getOrientation(1) for vertical :-)


Other Threads

1. How can target activity get the request code in startActiivtyForResult()?


   I am starting an activity with
 And i am receiving result onActivityResult() call back .

 The target acivity which gets the intent should get the request code
And based upon the request it has to do the specified operation.

How can target activity get the request code, which is passed to

Any help would appreciated greatly.


2. How to change color of button borders


I am beginner to android, I am trying to change the color of the borders of
button using xml. Do you have any solution?



3. Change the Image of the Progress bar

4. Cupcake/Donut/Eclairs

5. Fwd: Wta help my miley

6. libusb shared library

7. F-Sale: Nexus one BNIB special imlek