Solved

Android app side by side controls

Posted on 2014-11-25
4
379 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

You should read OS supplied guidelines before developing. I can't stress that enough. The guidelines will help you understand the reasons mobile app developers do what they do.  Apple is very particular when they review appstore submissions.
These days software publishers make it possible to move all the possible applications on smartphones, tablets, smartwatches, and more. Although behind every logic and decision is a gross doubt: how do they make it possible? In this blog post, we sha…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
Suggested Courses

752 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