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. Can ScrollView and Scrollbars in EditText co-exist?

Hi, I have a Dialog implemented with scrollview and a multiline
edittext item in the scrollview. I see that I can use the scrollbar in
the edittext as the scrollview will take over it.

Can they co-exist and work together?

Many thanks.

-- 

2. Why use nested AnimationSets

Can anyone explain the use of Nested AnimationSets defined in xml.

As far as I can understand it you would use them so that everything
within took some of the properties from its parent.

I can not really see the use of nesting them, can any one give an
example that uses nested AnimationSets and why they were used?

-- 

3. Touchscreen input detection

4. ContentResolver resolver reslut GREF has increased to 1901

5. Is it possible to rotate screen by program code but not accelerometer sensor?

6. testing android app for different devices

7. sory im nubie, i wanna ask how to intal my O2 stealh whit android OS