Chapter     9

Advanced ImageButton: Creating a Custom Multi-State ImageButton

In this ninth chapter, we will continue to look at the ImageView class by delving into one of its most important subclasses: the ImageButton class.

The ImageButton is one of Android’s most important user interface elements for implementing your leading-edge graphics design inside of a Button user interface element itself. Whereas Android has a standard Button class, it does not allow as much flexibility in implementing graphics design assets as the ImageButton class does.

Since this is a book focused on graphics, we are going to single out this ImageButton class. We’ll take an entire chapter to learn how to define its many states and how to attach graphics elements ...

Get Pro Android Graphics now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.