well ... i don't want to write the code for you, but what you are asking for is possible. if you aren't using the eclipse plugin, do that. it gives an okay GUI editor for layouts ... so you can try things out quickly and see what looks correct. some things to watch out for are setting weights, setting gravity, and setting layout widths.

On 10/18/09 2:39 AM, Clave Yard wrote:
Yes. You are right. android:orientation="horizontal" is helping a lot. But i want to keep three controls(image, button and text) on Top in a single line. And one slider control in the second line, below of that three controls. For ex: If you see built-in Volume control, there will be Volume speaker icon and volume text one line, and below you can see the volume slider. Same like that i wanted to do.


--- On Sun, 10/18/09, Jeffrey Blattman <jeffrey.blatt...@gmail.com> wrote:

From: Jeffrey Blattman <jeffrey.blatt...@gmail.com>
Subject: [android-beginners] Re: MULTIPLE CONTROLS IN SINGLE LINE:
To: android-beginners@googlegroups.com
Date: Sunday, October 18, 2009, 9:03 AM

are you using a listview or no? i'll assume no ... yes,  to get three views positioned horizontally across the page, you would use a LinearLayout and specify android:orientation="horizontal".

On 10/18/09 2:00 AM, Clave Yard wrote:
Do you mean, using layout we can't achieve this? Is there any sample provided by Android team to do such thing, creating custom controls?

--- On Sun, 10/18/09, Jeffrey Blattman <jeffrey.blatt...@gmail.com> wrote:

From: Jeffrey Blattman <jeffrey.blatt...@gmail.com>
Subject: [android-beginners] Re: MULTIPLE CONTROLS IN SINGLE LINE:
To: android-beginners@googlegroups.com
Date: Sunday, October 18, 2009, 8:48 AM

i assume you mean you want your list view's rows to be complex. in summary,

1. create a custom adapter
2. in the adapter's getView(), inflate your custom view and populate it as you wish

On 10/18/09 1:03 AM, Clave Yard wrote:
ALL,

CAN SOME ONE TELL ME HOW TO MAKE THREE CONTROLS IN A SINGLE LINE USING LAYOUT? I WANT TO SHOW AN IMABE, A BUTTON AND TEXT LABEL IN A SINGLE LINE. I TRIED THAT ON LAYOUT IN ECLIPSE. BUT IT ACCEPTS ONLY ONE CONTROL FOR ONE LINE, IF ADD NEXT CONTROL IT GOES TO NEXT LINE(ROW). I WANT TO MAKE THREE CONTROLS TO BE IN SINGLE LINE. HOW DO I ACHIEVE THIS?

APPRECIATE YOUR HELP ON THIS.




--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---


--


--


--

Reply via email to