I have been playing around with layouts and figuring out what each layout is best used for. The Android Layout Tutorials does a nice job going over the basics of the layouts and widgets (objects visible to the user) and I highly recommend at lease looking the code over. I have not found a use for the Linear Layout in my projects yet but I think I have fallen in love with the Relative Layout. The Relative Layout is so easy to use, you create a widget and tell it where on the screen you want it to be located then you can tell another widget to sit next to the first one and so on. Here is a screen shot of a layout that I created using the Relative Layout.

I will be working on using the Tab Layout, List View and Table Layout in my project as well and I look forward to master those layouts as well. Android has made it very easy to create a good-looking GUI (Graphical User Interface).

Advertisements