In this chapter, we will cover the following topics: Defining and inflating a layout Using RelativeLayout Using LinearLayout Creating tables—TableLayout and GridLayout RecyclerView replaces ListView Changing layout properties during runtime Introduction In Android, the user interface is defined in a layout. A layout can be declared in XML or created dynamically in code. (It’s recommended to declare the layout in XML rather than inĐọc tiếp “Chapter 2. Layouts”