Android Design Layout Comparison

I would like to know the pros and cons between the various Android design mockups. In some cases, I feel like I can choose between a linear layout or a table layout, or several times between a linear layout and a relative layout. I would like to know the following

  • which layout is best in this case
  • which is quickly drawn, ect
  • which works best

Can someone provide a comparison between layouts (Linear, relative, absolute, table, frame, etc.)?

+4
source share
3 answers

The layout names are quite descriptive: you will use LinearLayout if you want a linear line of views, a table, when you want a table, etc.

If you have a complex layout, RelativeLayout is preferred.

All of them will be painted at a relatively close time. You need to avoid creating too many nested layouts (e.g. LinearLayout inside LinearLayout ).

Spend some time watching this video: Romain Guy Story Google I / O 2009 . A lot of information to get from there about layout efficiency.

+4
source

This is a great link for your answer. http://www.learn-android.com/2010/01/05/android-layout-tutorial/

Relative layout is best suited for managing controls in the user interface. but if you need data in a tabular format, then the layout of the table is great. Hope this helps !!!

+3
source

If you mainly use Linearlayout, this will be useful since you can use the same application for different screen sizes in the landscape, as well as in Potrait mode. I use only Linearlayout in the layout, so my design looks the same when the orientation has changed for all screen sizes.

0
source

All Articles