O'Reilly logo

Pro Android Graphics by Wallace Jackson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required