Chapter 11. Combining Views for Custom Components

In Chapter 10, “How to Handle Common Components,” you learned to apply existing Android classes to solve common challenges in Android. The best approach is generally to use the existing classes unless you have a compelling reason to do something different. Sometimes existing classes do not quite solve your problem, especially when it comes to views. When you do need to create a custom view, there are two main approaches: modify one or more existing views to do what you want, or create your own. This chapter focuses on the first solution. Chapter 12, “Developing Fully Custom Views,” does the latter to create a view from scratch.

When to Combine Views

Deciding exactly when to combine views for ...

Get Android™ User Interface Design: Turning Ideas and Sketches into Beautifully Designed Apps 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.