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     10

Using 9-Patch Imaging Techniques to Create Scalable Imaging Elements

In this tenth chapter, we will take a closer look at the Android NinePatch class, as well as the NinePatchDrawable class, and the Draw 9-patch tool.

Since this is a book focused on graphics, and we have now covered Android ImageView and ImageButton classes, which are used to hold and implement an image or animation graphics asset, we will start to focus more on graphics-related classes within Android OS. The first of these is NinePatch.

A NinePatch is one of Android’s most important graphics design tools when it comes to developing image assets that can scale without distortion due to Android device display screen aspect ratio or orientation changes.

A NinePatch ...

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