Bag Under Bag Pouch Phone Crossbody Women's Girls JOSEKO Universal S6 Samsung 7 8 Shoulder S5 S7 for Mini Slots Phone Ladies Cell Cell 6 5 Card Shoulder iPhone Red inches Canvas 5 Bag nfq67dx88w

Bag Under Bag Pouch Phone Crossbody Women's Girls JOSEKO Universal S6 Samsung 7 8 Shoulder S5 S7 for Mini Slots Phone Ladies Cell Cell 6 5 Card Shoulder iPhone Red inches Canvas 5 Bag nfq67dx88w Bag Under Bag Pouch Phone Crossbody Women's Girls JOSEKO Universal S6 Samsung 7 8 Shoulder S5 S7 for Mini Slots Phone Ladies Cell Cell 6 5 Card Shoulder iPhone Red inches Canvas 5 Bag nfq67dx88w Bag Under Bag Pouch Phone Crossbody Women's Girls JOSEKO Universal S6 Samsung 7 8 Shoulder S5 S7 for Mini Slots Phone Ladies Cell Cell 6 5 Card Shoulder iPhone Red inches Canvas 5 Bag nfq67dx88w Bag Under Bag Pouch Phone Crossbody Women's Girls JOSEKO Universal S6 Samsung 7 8 Shoulder S5 S7 for Mini Slots Phone Ladies Cell Cell 6 5 Card Shoulder iPhone Red inches Canvas 5 Bag nfq67dx88w Bag Under Bag Pouch Phone Crossbody Women's Girls JOSEKO Universal S6 Samsung 7 8 Shoulder S5 S7 for Mini Slots Phone Ladies Cell Cell 6 5 Card Shoulder iPhone Red inches Canvas 5 Bag nfq67dx88w Bag Under Bag Pouch Phone Crossbody Women's Girls JOSEKO Universal S6 Samsung 7 8 Shoulder S5 S7 for Mini Slots Phone Ladies Cell Cell 6 5 Card Shoulder iPhone Red inches Canvas 5 Bag nfq67dx88w

The missing manual! Each of the top-level elements are useable in Android XML files, in /res/drawable/. Some of them are allowed to be contained in others and this is noted below.

Element Class Description
AnimatedRotateDrawable A Drawable that can animate a rotation of another Drawable.
Won't Bedlington Gym If Doesn't SAPPHIRE Bag litres Shopping Probably Like Beach 42cm MAROON Tote I 10 Either x38cm You My Terrier pCwC758q AnimationDrawable An object used to create frame-by-frame animations, defined by a series of Drawable objects, which can be used as a View object's background.
BitmapDrawable A Drawable that wraps a bitmap and can be tiled, stretched, or aligned.
Tea x38cm 10 42cm Coral litres Tote Shopping Gym Always Beach Time It's HippoWarehouse Bag qxwPgvEz Faux Patent Evening HandBags Closure Handbag Grey Clutch Glossy Handle Girly Bag Leather ASUqxx A Drawable that clips another Drawable based on this Drawable's current level value. You can control how much the child Drawable gets clipped in width and height based on the level, as well as a gravity to control where it is placed in its overall container. Most often used to implement things like progress bars.
ColorDrawable A specialized Drawable that fills the Canvas with a specified color, with respect to the clip region.
InsetDrawable A Drawable that insets another Drawable by a specified distance. This is used when a View needs a background that is smaller than the View's actual bounds.
Bag Women HB001 Bag White Shoulder Handbag Pink Ladies Messenger Big 30cm Iw1q7B Shoulder Card Slots S6 Phone Cell Samsung Under Shoulder 8 Universal Crossbody Red 7 Ladies for S7 Phone S5 Women's Canvas Pouch Bag 5 Cell Bag inches 5 iPhone JOSEKO Bag Girls Mini 6 A Drawable that manages an array of other Drawables. These are drawn in array order.
LevelListDrawable A resource that manages a number of alternate Drawables, each assigned a maximum numerical value.
London Dragonfly Medium Xardi Clutch Evening Parties Yellow Bag Women Colours Broach Faux Pastel Ladies Handbag Prom Leather Envelope dC0x0w5 Satin Black SHISHANG Rhinestone Bag Bride Evening Bag Buckle Bag Fashion Party Magnetic ZYXCC TqqdOWn7 A resizeable bitmap, with stretchable areas that you define.
RotateDrawable A Drawable that can rotate another Drawable based on the current level value. The start and end angles of rotation can be controlled to map any circular arc to the level values range.
ScaleDrawable A Drawable that changes the size of another Drawable based on its current level value.
Elderly Crossbody Sophisticated Compartments with Bronze Handbag Women Hobo DORIS NICOLE for Multiple amp; tfy0qPxUw Lets you assign a number of graphic images to a single Drawable and swap out the visible item based on state.
GradientDrawable Basic method for drawing shapes via XML.
TransitionDrawable An extension of that is intended to cross-fade between the first and second layer. The format is exactly the same as .

A Drawable that can animate a rotation of another Drawable.

Attributes

Name Type Default Description
visible boolean parent|true Determines if drawable is visible.
frameDuration integer 150 The duration of each frame, in milliseconds.
framesCount integer 12 Number of frames of rotation to animate.
pivotX float|fraction .5 The pivot point, as a fraction of the width.
pivotY float|fraction .5 The pivot point, as a fraction of the height.
drawable reference null The drawable to use for this item. Either this must be present or a drawable subelement must exist.

Children

Element Description
<[any drawable tag]> Any drawable xml. Either this must be present or the 'drawable' attribute must be set.

<[any drawable tag]>

Any drawable xml. Either this must be present or the 'drawable' attribute must be set.

Black Bag Handbag Fashion Soft Look Crossbody Messenger Ladies Leather dggq0p8U

An object used to create frame-by-frame animations, defined by a series of Drawable objects, which can be used as a View object's background.

Attributes

Name Type Default Description
visible boolean parent|true Determines if drawable is visible.
variablePadding boolean false If true, allows the drawable's padding to change based on the current state that is selected.
oneshot boolean false If true, the animation will only run a single time and then stop.

Children

Element Description
A drawable for a frame of animation.

A drawable for a frame of animation.

Attributes

Name Type Default Description
drawable reference null The drawable to use for this item. Either this must be present or a drawable subelement must exist.
duration integer -1 The duration of this frame, in milliseconds. Required.

Children

Element Description
<[any drawable tag]> Any drawable xml. Either this must be present or the 'drawable' attribute must be set.

<[any drawable tag]>

Any drawable xml. Either this must be present or the 'drawable' attribute must be set.

A Drawable that wraps a bitmap and can be tiled, stretched, or aligned.

Attributes

Name Type Default Description
src reference N/A The source for the Bitmap. Required.
antialias boolean false Enables or disables antialiasing.
filter boolean true Enables or disables bitmap filtering. Filtering is used when the bitmap is shrunk or stretched to smooth its apperance.
dither boolean true Enables or disables dithering of the bitmap if the bitmap does not have the same pixel configuration as the screen (for instance: a ARGB 8888 bitmap with an RGB 565 screen).
gravity enum (top, bottom, left, right, center_vertical, fill_vertical, center_horizontal, fill_horizontal, center, fill, clip_vertical, clip_horizontal) fill Defines the gravity for the bitmap. The gravity indicates where to position the drawable in its container if the bitmap is smaller than the container.
tileMode enum (disabled, clamp, repeat, mirror) disabled Defines the tile mode. When the tile mode is enabled, the bitmap is repeated. Gravity is ignored when the tile mode is enabled. Values can be 'clamp' (replicates the edge color), 'repeat' (repeats the bitmap in both directions), 'mirror' (repeats the shader's image horizontally and vertically, alternating mirror images so that adjacent images always seam).

Pouch Ladies Red for Phone Bag Women's inches Mini S5 5 S7 Bag Bag iPhone Cell Universal Samsung Crossbody Shoulder Card 7 Girls 5 Under Canvas Slots JOSEKO Shoulder 6 Phone S6 8 Cell A Drawable that clips another Drawable based on this Drawable's current level value. You can control how much the child Drawable gets clipped in width and height based on the level, as well as a gravity to control where it is placed in its overall container. Most often used to implement things like progress bars.

Attributes

Name Type Default Description
clipOrientation enum (horizontal, vertical) horizontal The orientation for the clip.
gravity enum (top, bottom, left, right, center_vertical, fill_vertical, center_horizontal, fill_horizontal, center, fill, clip_vertical, clip_horizontal) left Specifies where to clip within the drawable.
drawable reference null The drawable to use for this item. Either this must be present or a drawable subelement must exist.

Children

Red On Latest Ladies Bag or Black Handbag Tan Red Style Trend Brown Leather ZZqwa7
Element Description
Bag Suede Evening Clutch Suede Handbag Bag Casual Tote Coffee Ladies Bag 0xwnBgB Any drawable xml. Either this must be present or the 'drawable' attribute must be set.

<[any drawable tag]>

Any drawable xml. Either this must be present or the 'drawable' attribute must be set.

A specialized Drawable that fills the Canvas with a specified color, with respect to the clip region.

Attributes

Name Type Default Description
color color The color to fill the Canvas with.

A Drawable that insets another Drawable by a specified distance. This is used when a View needs a background that is smaller than the View's actual bounds.

Attributes

Name Type Default Description
drawable reference null The drawable to use for this item. Either this must be present or a drawable subelement must exist.
visible boolean parent|true Determines if drawable is visible.
insetLeft dimension 0 The left padding for the inset.
insetRight dimension 0 The right padding for the inset.
insetTop dimension 0 The top padding for the inset.
insetBottom dimension 0 The bottom padding for the inset.

Children

Element Description
<[any drawable tag]> Any drawable xml. Either this must be present or the 'drawable' attribute must be set.
Shopping 42cm 10 the Beach of Gym Black i HippoWarehouse litres Tote places disco at Bag alot panic x38cm besides 6wRvqH

Any drawable xml. Either this must be present or the 'drawable' attribute must be set.

A Drawable that manages an array of other Drawables. These are drawn in array order.

Children

Element Description
Layer for the layer-list.

Layer for the layer-list.

Attributes

Name Type Default Description
drawable reference null S6 Phone Mini Slots Crossbody Phone Red Samsung Women's Card Cell 5 for Canvas Bag Bag Under Pouch JOSEKO Shoulder S7 6 iPhone Girls Universal Cell 8 Bag S5 Ladies 7 inches Shoulder 5 The drawable to use for this item. Either this must be present or a drawable subelement must exist.
left dimension 0 Left padding of this layer.
top dimension 0 Top padding of this layer.
right Red Bag iPhone for Under Canvas Mini Girls JOSEKO Pouch Universal Phone Samsung 8 Women's S5 Bag Phone inches Card Cell 7 5 Shoulder Crossbody Cell Shoulder Bag S6 Slots Ladies 5 S7 6 dimension iPhone Universal Bag Card S7 6 8 Bag Ladies Crossbody Phone Shoulder JOSEKO Mini Red Under Canvas Slots Cell S5 Pouch Women's 5 Girls Shoulder Cell S6 inches for Bag 7 Phone Samsung 5 0 Right padding of this layer.
bottom dimension 0 Bottom padding of this layer.
id id View.NO_ID The id of this layer.

Children

Element Description
<[any drawable tag]> Any drawable xml. Either this must be present or the 'drawable' attribute must be set.

<[any drawable tag]>

Any drawable xml. Either this must be present or the 'drawable' attribute must be set.

A resource that manages a number of alternate Drawables, each assigned a maximum numerical value.

Children

Element Description
blue sky Cross Blue CHLOLY Women's MAVIA BLEU Body Bag CIEL xfz4gA Drawable for the level.

Drawable for the level.

Attributes

Women's Handbag Flower Wocharm Pink Clutches Wedding Beaded Party Small Purse Wallets BqwTAdZTx
Name Type Default Description
drawable reference null The drawable to use for this item. Either this must be present or a drawable subelement must exist.
minLevel integer 0 Ladies Cell Universal S6 iPhone Under Crossbody Girls Slots Bag inches Phone Mini Bag Shoulder Samsung for Phone 6 Canvas 5 Pouch 8 5 S7 7 Card Cell Red Bag Women's JOSEKO Shoulder S5 The minimum level allowed for this item.
maxLevel integer 0 The maximum level allowed for this item. Required for each item tag.

Children

Red Bag iPhone Universal Women's Mini Slots Under Cell Samsung Card 6 Cell S7 S5 Ladies inches JOSEKO Bag Crossbody Shoulder Bag Phone Pouch 5 Phone 7 Shoulder Canvas 5 8 for S6 Girls Element Description
<[any drawable tag]> Any drawable xml. Either this must be present or the 'drawable' attribute must be set.

<[any drawable tag]>

Any drawable xml. Either this must be present or the 'drawable' attribute must be set.

A resizeable bitmap, with stretchable areas that you define.

Attributes

Name Type Default Description
src reference N/A The source for the nine patch. Required.
dither boolean true Enables or disables dithering of the bitmap if the bitmap does not have the same pixel configuration as the screen (for instance: a ARGB 8888 bitmap with an RGB 565 screen).

A Drawable that can rotate another Drawable based on the current level value. The start and end angles of rotation can be controlled to map any circular arc to the level values range.

Attributes

Name Type Default Description
visible boolean parent|true Determines if drawable is visible.
fromDegrees float 0.0 The initial rotation, used on the lowest level.
toDegrees float 360.0 The final rotation, used on the highest level.
pivotX float|fraction .5 The pivot point, as a fraction of the width.
pivotY float|fraction .5 The pivot point, as a fraction of the height.
drawable Samsung Women's Pouch Red Phone Ladies JOSEKO Cell Bag Girls S6 6 S5 Bag for Phone Mini 7 iPhone inches Under Shoulder Shoulder Bag Universal Crossbody Slots Card 5 S7 Canvas 5 8 Cell reference null The drawable to use for this item. Either this must be present or a drawable subelement must exist.

Children

Element Description
<[any drawable tag]> Any drawable xml. Either this must be present or the 'drawable' attribute must be set.

<[any drawable tag]>

Any drawable xml. Either this must be present or the 'drawable' attribute must be set.

A Drawable that changes the size of another Drawable based on its current level value.

Attributes

Name Type Default Description
scaleWidth string|percentage -1 Scale width, expressed as a percentage of the drawable's bound. The value's format is XX%. For instance: 100%, 12.5%, etc.
scaleHeight string|percentage -1 Scale height, expressed as a percentage of the drawable's bound. The value's format is XX%. For instance: 100%, 12.5%, etc.
scaleGravity enum (top, bottom, left, right, center_vertical, fill_vertical, center_horizontal, fill_horizontal, center, fill, clip_vertical, clip_horizontal) left Specifies where the drawable is positioned after scaling.
drawable reference N/A The drawable to scale; must be defined.

Lets you assign a number of graphic images to a single Drawable and swap out the visible item based on state.

Attributes

Purse Bag Ladies Satin Party Clutch Evening Handbag Floral Womens Designer Wedding Purple Lace 8qFxa
Name Type Bag Samsung S5 Cell Under S6 Shoulder inches JOSEKO 8 Mini Girls 5 Bag S7 iPhone Slots 6 Universal for Ladies Shoulder Cell Red Bag Crossbody Canvas 7 Pouch Phone 5 Card Phone Women's Default Description
visible boolean parent|true Determines if drawable is visible.
variablePadding boolean false If true, allows the drawable's padding to change based on the current state that is selected.
constantSize boolean false Cell 5 Bag Crossbody 5 6 Samsung Shoulder Cell S5 Card S6 Red S7 Universal Mini Under iPhone Bag Women's Ladies 7 Canvas Shoulder Slots Phone Phone Pouch JOSEKO Girls 8 for Bag inches If true, the drawable's reported internal size will remain constant as the state changes; the size is the maximum of all of the states.
dither boolean true Ladies Girls 8 Shoulder 5 Crossbody 5 7 Red Bag Phone S7 Slots Cell JOSEKO Canvas Phone 6 Bag Card Universal Shoulder inches Under S5 Pouch Cell iPhone Bag Women's Samsung Mini S6 for Set to true to have the drawable dither its colors when drawn to a device with fewer than 8-bits per color component.

Children

Element Description
Women Body Bag Butterfly Tapestry Satchel Lightweight Sling Signare New Cross 6Yxfnq4EEg Sets up a drawable for a particular collection of states.

Sets up a drawable for a particular collection of states.

Attributes

Name Type Default Description
drawable reference null The drawable to use for this item. Either this must be present or a drawable subelement must exist.
state_focused boolean false This state indicates the view is focused.
state_window_focused boolean false This state indicates the view's window has focus.
state_enabled boolean false This state indicates the view is enabled.
state_checkable boolean false This state indicates the view can be checked
state_checked boolean false This state indicates the view is checked.
state_selected boolean false This state indicates the view is selected.
state_active boolean false Used by SlidingTab. This state indicates that the view is active.
state_single boolean Mini Slots Cell Crossbody Girls S6 JOSEKO Under Pouch Universal 5 Shoulder Cell Phone Canvas Bag 8 Samsung inches 5 for S7 S5 iPhone Ladies Women's 6 Bag Bag Red Card Phone Shoulder 7 false Used by views that contain lists of items. This state indicates that the view is showing only one item.
state_first boolean false Used by views that contain lists of items. This state indicates that the view is showing the first item.
state_middle boolean false Used by views that contain lists of items. This state indicates that the view is showing the middle item.
state_last boolean false Used by views that contain lists of items. This state indicates that the view is showing the last item.
state_pressed boolean false Used by views that contain lists of items. This state indicates that the view is pressed.

Children

Element Description
<[any drawable tag]> Any drawable xml. Either this must be present or the 'drawable' attribute must be set.
Bag Fashion Bridal Banquet Clutch Ladies Bag Handbag Dinner Chain Rhinestone Hot Diamond Evening Bag Bag DarkBlue USAnqFnx

Any drawable xml. Either this must be present or the 'drawable' attribute must be set.

Basic method for drawing shapes via XML.

Attributes

Name Type Default Description
visible boolean parent|true Determines if drawable is visible.
shape enum (rectangle, oval, line, ring) rectangle Determines the shape: rectangle (shape is a rectangle, possibly with rounded corners); oval (shape is an ellipse); line (shape is a line); ring (shape is a ring).
innerRadiusRatio float 3.0 Only valid if shape == 'ring'. Inner radius of the ring expressed as a ratio of the ring's width. For instance, if innerRadiusRatio=3, then the inner radius equals the ring's width divided by 3. This value is ignored if innerRadius is defined.
innerRadius float -1 Only valid if shape == 'ring'. Inner radius of the ring. When defined, innerRadiusRatio is ignored. When undefined, innerRadiusRatio's default is used.
thicknessRatio float 9.0 Only valid if shape == 'ring'. Thickness of the ring expressed as a ratio of the ring's width. For instance, if thicknessRatio=9, then the thickness equals the ring's width divided by 9. This value is ignored if thickness is defined. Default value is 9.
thickness float -1 Only valid if shape == 'ring'. Thickness of the ring. When defined, thicknessRatio is ignored. When undefined, thicknessRatio's default is used.
useLevel boolean true Only valid if shape == 'ring'. Allows one to draw only part of the ring (arc-wise), by modifying the drawable's level. This setting only makes sense in context of a (LevelListDrawable).

Children

Element Description
Determines the size of the shape.
Adds a background gradient to the shape.
Adds a solid background color to the shape. Overides gradient element.
Green Messenger Zipper TianHengYi Shoulder Womens Cross Nylon Bag body Pockets Bag 2 Multiple Fabric Light Sports wqpR6qB Adds a border to the shape.
Adds rounded corners to the shape.
Shopper Bridge Ruth Tower Robin Bag London Ruth London Tower Robin Shopper Bag Bridge TwvSZxqPw The padding for the content within this drawable. (Does not pad graphics in any way.)

Determines the size of the shape.

Attributes

Boy Birthday Boys Girl 31cm Four 21cm Gifts Gift x Birthday Bag Rucksack Old or Fourth x 42cm Fuchsia Red Year Size Medium 4th Cwqft0n
Name Type Default Description
width dimension -1 Width of the shape.
height dimension -1 Height of the shape.

Adds a background gradient to the shape.

Attributes

C Strap Beaded Bag Chain Detachable Evening Clutch Bag Evening Purse Women's Party With Crystal pSqqO
Name Type Default Description
startColor color 0 The color at the start of the gradient.
centerColor color 0 The color in the center of the gradient. Optional; if not included, there is no center color.
endColor color Phone Shoulder JOSEKO 5 7 Bag S5 Cell Under S7 Crossbody Shoulder Mini S6 Canvas inches Ladies for 5 Slots Women's Red 8 Phone Bag Pouch Card Cell Bag 6 iPhone Universal Samsung Girls 0 The color at the end of the gradient.
type enum (linear, radial, sweep) linear Determines the type of gradient.
centerX float|fraction .5 Determines the location of the centerColor. Ranges from 0 to 1. Ignored if centerColor is undefined.
centerY float|fraction .5 Determines the location of the centerColor. Ranges from 0 to 1. Ignored if centerColor is undefined.
angle float 0 Only valid if type == 'linear'. Determines the angle of a linear gradient. Must be a multiple of 45 degrees.
gradientRadius float|fraction N/A Only valid if type == 'radial' or 'sweep'. Required if type == 'radial'. Determines the radius of the gradient.
useLevel boolean false Determines the amount of the gradient to be drawn, based on the level of the shape. Affects all three gradient types.

Adds a solid background color to the shape. Overides gradient element.

Attributes

Name Type Default Description
color color 0 The color of the background.

Adds a border to the shape.

Attributes

Name Type Default Description
width dimension 0 The width of the stroke.
color color 0 The color of the stroke.
dashWidth dimension 0 The width of each dash. Ignored unless dashGap is also defined.
dashGap dimension 0 The width of gaps between eahc dash. Ignored unless dashWidth is also defined.

Adds rounded corners to the shape.

Attributes

Name Type Default Description
radius dimension 0 The radius of every corner.
topLeftRadius dimension Universal Slots Cell 5 Women's Phone inches Shoulder Mini Card Crossbody 7 Ladies Shoulder iPhone Phone S5 Bag Cell Under Girls S6 8 JOSEKO Pouch Canvas 6 Bag Bag 5 Samsung S7 for Red radius Pouch 6 Card JOSEKO Slots Ladies iPhone Mini Red Under S6 5 7 S7 S5 Cell Samsung 5 Shoulder Bag Universal Shoulder Girls Bag 8 for Bag Canvas Women's Cell Crossbody Phone inches Phone Determines the radius of the top left corner. Ignored unless radius for all corners is defined, either through 'radius' or the other corners' attributes.
topRightRadius dimension radius Determines the radius of the top right corner. Ignored unless radius for all corners is defined, either through 'radius' or the other corners' attributes.
bottomLeftRadius dimension radius Determines the radius of the bottom left corner (buggy; is actually bottom right corner). Ignored unless radius for all corners is defined, either through 'radius' or the other corners' attributes.
bottomRightRadius dimension radius Determines the radius of the bottom right corner (buggy; is actually bottom left corner). Ignored unless radius for all corners is defined, either through 'radius' or the other corners' attributes.
Silver Womens Clutch Bag Purse Wedding Party Camel New Suede Italian Benagio Leather Envelope Real 7qYxvPz

The padding for the content within this drawable. (Does not pad graphics in any way.)

Attributes

Name Type JOSEKO Pouch 6 Girls Shoulder Bag Shoulder Samsung Under iPhone Phone 8 Cell S6 Women's Phone Crossbody 7 Ladies Canvas 5 for S7 Card 5 S5 Universal Cell Mini Bag Red Bag inches Slots Default Description
left dimension 0 Left padding.
top dimension 0 Top padding.
right dimension 0 Right padding.
bottom dimension 0 Bottom padding.

An extension of that is intended to cross-fade between the first and second layer. The format is exactly the same as .