Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

Best way to learn layouts?

OP sega dude

15th May 2014, 02:28 AM   |  #1  
OP Member
Thanks Meter: 3
 
60 posts
Join Date:Joined: Sep 2011
More
I seem to be really struggling with Android layouts. It's very complicated (compared to iOS) and I just can't figure it out. So, what is the best way to learn layouts? Any help would be greatly appreciated.
15th May 2014, 11:27 AM   |  #2  
SimplicityApks's Avatar
Senior Member
Flag Aachen
Thanks Meter: 337
 
346 posts
Join Date:Joined: May 2013
More
Quote:
Originally Posted by sega dude

I seem to be really struggling with Android layouts. It's very complicated (compared to iOS) and I just can't figure it out. So, what is the best way to learn layouts? Any help would be greatly appreciated.

I assume you've read through the first app's layout training? For sure Android layouts are a bit more complex than the iOS one where you just place an item on the screen at specific pixel coordinates, but it's really not that complcated once you understand the basics. Android has to deal with many different screen sizes, orientations and pixel densities. That is why a simple approach with placing the views at specific pixel positions is not that great (but is still possible - don't use that). Instead, you have to think how is the views position relative to another in a RelativeLayout, or divide your app's UI into rows with LinearLayouts.

Here's an overview about these ViewGroups, but there are many great tutorials for instance here or here on vogella.

If you have a more specific question, just ask here
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes