Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 437
  • Last Modified:

Android app side by side controls

I am very new to android development and I am doing my first app. I would like to place a textbox (numeric) and radiobox  controls side by side (see the attachment) - how do I do that. Every time I drop a control onto the page it wants to put it in the same location as the previous control
siidebyside.png
0
r3nder
Asked:
r3nder
  • 2
2 Solutions
 
Chris HarteThaumaturgeCommented:
You are going to have to manually code your xml layout files. (I assume you are using the graphics editor).

http://developer.android.com/guide/topics/ui/declaring-layout.html

Post the contents of your xml so we can check you are not doing anything obviously wrong.
0
 
r3nderAuthor Commented:
thank you MunterMan - I will post the code when I get home
0
 
BobHavertyComhCommented:
Put these things inside of a LinearLayout and set android:orientation="horizontal". Then adjust the margins, padding etc....for the controls you put inside to control spacing. If you have more than these controls or you will have more, put the LinearLayout that has a horizontal orientation inside of a LinearLayout with a vertical orientation. This way you can keep adding LijnearLayouts with horizontal orientation to the wrapping LinearLayout that has a vertical orientation so that you can stack your horizontal linearlayouts one on top of the other within your vertical linearlayout.
0
 
r3nderAuthor Commented:
thanks
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now