Chapter     12

Android’s LinearLayout Class: Horizontal and Vertical UI Design

Android’s LinearLayout class has become one of the most often used layout container classes, and for very good reasons. Like the FrameLayout, it is memory efficient, simple to implement, and efficiently provides the basic user interface layout designs that are so popular on the Internet today.

These designs generally feature either a row of buttons or icons along the top of the webpage (or in this case the application screen) or alternatively down the side of the webpage or app. As we learned previously, the Android OS guidelines prefer that we use the left side of the screen for UI design elements, however, with the advent of LTR and RTL designations (in Android ...

Get Pro Android UI now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.