Solved

Android app side by side controls

Posted on 2014-11-25
4
351 Views
Last Modified: 2014-11-25
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
Comment
Question by:r3nder
  • 2
4 Comments
 
LVL 17

Accepted Solution

by:
Chris Harte earned 250 total points
ID: 40464481
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
 
LVL 6

Author Comment

by:r3nder
ID: 40464513
thank you MunterMan - I will post the code when I get home
0
 
LVL 9

Assisted Solution

by:BobHavertyComh
BobHavertyComh earned 250 total points
ID: 40464702
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
 
LVL 6

Author Closing Comment

by:r3nder
ID: 40466074
thanks
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
hibernate example for saving data 19 43
throw exception 21 44
Problem to App source 6 41
Q: Not able to define my Hotmail on my new Samsung S5 ? 10 24
Often, people trade privacy and security for convenience. However in today's concrete jungle, this is an extremely foolish decision considering the vast amount of technologies being used against consumer interest. First off, I won't waste any time e…
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question