Horizontal RadioGroup

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


Sponsored Links
 Hi!
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
Kaloer

--~--~---------~--~----~------------~-------~--~----~



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

R/




--~--~---------~--~----~------------~-------~--~----~


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

//Kaloer
--~--~---------~--~----~------------~-------~--~----~



Other Threads

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

Hi,

   I am starting an activity with
startActivityForResult(intent,requestcode).
 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
startActivityForResult().

Any help would appreciated greatly.

-- 

2. How to change color of button borders

Hi,

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

Thanks,
Umesh

-- 

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