Chapter 12. Developing Custom Views
Android has a significant number of views already created for your use. Throughout this book, you’ve learned how to work with many of them, and in the previous chapter, “Working with the Canvas and Advanced Drawing,” you learned how to create custom drawables that could display almost anything you could imagine. Now it is time to begin to combine the knowledge of drawing with an understanding of views to dive into creating your own.
General Concepts
Before you can start developing your own custom views, it’s a good idea to understand the general concepts behind views. Views must know how to measure themselves, lay themselves (and any children) out, draw themselves (although some views do not actually draw ...
Get Android User Interface Design: Implementing Material Design for Developers, Second Edition 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.