Chapter    3

Principles and Practice of Custom Layouts

In the previous two chapters, we covered how to create and work with custom views and compound controls. We are now on the third leg of this view-customization journey: creating and working with custom layouts. The material in these first three chapters is clearly related. This material relies on the same fundamental architecture of views that is covered in Chapter 1. However, each chapter conveys a different aspect of the view architecture.

Contrasting Custom Layouts

Let us take a moment to compare and contrast the three approaches to customizing controls in the Android UI framework: custom views, compound controls, and custom layouts. This comparison will help us to focus on the material ...

Get Expert Android 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.