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

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.