
Scale Drawable An XML file that defines a drawable that changes the size of another Drawable based on itsĬurrent level value.

Clip Drawable An XML file that defines a drawable that clips another Drawable based on this Drawable'sĬurrent level value. This is useful when a View needs a background drawable that is smaller than the View's actualīounds. Inset Drawable An XML file that defines a drawable that insets another drawable by a specified distance. Transition Drawable An XML file that defines a drawable that can cross-fade between two drawable resources.Ĭreates a TransitionDrawable. Level List An XML file that defines a drawable that manages a number of alternate Drawables, eachĪssigned a maximum numerical value. State List An XML file that references different bitmap graphicsįor different states (for example, to use a different image when a button is pressed).Ĭreates a StateListDrawable. These are drawn in array order, so theĮlement with the largest index is be drawn on top. Layer List A Drawable that manages an array of other Drawables. Nine-Patch File A PNG file with stretchable regions to allow image resizing based on content (.

There are several different types of drawables: Bitmap File A bitmap graphic file (. To another XML resource with attributes such as android:drawable and android:icon. You can retrieve with APIs such as getDrawable(int) or apply A drawable resource is a general concept for a graphic that can be drawn to the screen and which
