4/29/2024 0 Comments Android load pngTransition 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 tapped.Ĭreates a StateListDrawable. These are drawn in array order, so theĮlement with the largest index is drawn on top. Layer list A drawable that manages an array of other drawables. Nine-patch file A PNG file with stretchable regions to let images resize based on content (. There are several types of drawables: Bitmap file A bitmap graphic file (PNG, WEBP, JPG, or GIF).Ĭreates a BitmapDrawable. To another XML resource with attributes such as android:drawable and android:icon. You can retrieve with APIs such as getDrawable(int) or apply
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |