Chapter 2. Layouts

In this chapter, we will cover the following topics:

  • Defining and inflating a layout
  • Using RelativeLayout
  • Using LinearLayout
  • Creating tables – TableLayout and GridLayout
  • Using ListView, GridView, and Adapters
  • Changing layout properties during runtime
  • Optimizing layouts with the Hierarchy Viewer