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. Instrumentation Problem

Hello All

I am trying to write an instrumentation project from where I can call
another project(read it as another application)
and execute some tests. is it possible?
I read about requiring 2 android manifest files for this. any good
articles/pointers on this??

Best Regards,
Sudheer

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

2. Question regarding StopSelf method that a Service can call

I have a service that does a task and then call StopSelf. I see that
the OnDestroy method if the service is being called and when I try to
start a service OnCreate method is being called again. So looks like
service is being destroyed fine, but I still see my service in the
task list.

I wanted to confirm if the services I see in the task list is just am
empty process that Android would eventually kill. Please let me know
if my understandin is incorrect.
--~--~---------~--~----~------------~-------~--~----~

3. Generating tables like lists

4. Adding a new app developed in J2ME to Android SDK 1.0

5. displaying camera preview on my own

6. Unsuccessful Install

7. Installing Unicode fonts in Emulator