Chapter    1

Exploring Custom Views

Your understanding of Android SDK is not vigorous until you master the architecture of Android’s Views. So it is appropriate that we begin Expert Android by exploring the power of Android’s custom views. Our goal in this and the next two chapters is to unwrap the architecture of Android’s Views by customizing them. In Android you can customize views in three ways:

  • Custom views (by extending the View class)
  • Compound views/controls (by composing other existing controls through extending one of the existing Layout classes) (Note that in this and the next few chapters we are using custom views and custom components synonymously)
  • Custom layouts (by extending the ViewGroup class)

We have learned a lot in researching ...

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.