Archive for August, 2011

Layout Types Part 4: FrameLayout

Friday, August 26th, 2011

In the previous articles in this series we have looked at LinearLayout, TableLayout, and RelativeLayout. In this concluding part, we’ll look at FrameLayout, which is arguable the simplest of the basic layout types, but can be extremely useful.

Layout Types Part 3: RelativeLayout

Friday, August 19th, 2011

So far in this series we have looked at LinearLayout and TableLayout to perform different functions when creating an Android layout. In this article we’ll turn our attention to RelativeLayouts.

Layout Types Part 2: TableLayout

Friday, August 12th, 2011

In the previous article we looked at LinearLayout but ran in to a problem when we tried to get the columns of nested LinearLayouts to align. In this article we’ll explore TableLayout and look at how it can solve that particular problem.

Layout Types Part 1: LinearLayout

Friday, August 5th, 2011

Android Layouts are extremely powerful. In the article on Supporting Multiple Displays we looked at how we can use Layouts to allow Android to take a certain amount of responsibility for fitting things to the display. However, Android supports a number of different types of Layout and, while we may have a clear idea of how things should be arranged on the screen, it is not always obvious which type of layout(s) we should use to achieve this. In this series of articles, we will examine the different types of layout available to us, to help us to get a feel for which layout type we should use to solve different problems.