Class StateDrawable

Drawable which is drawn depending on state (see http://developer.android.com/guide/topics/resources/drawable-resource.html#StateList)

class StateDrawable
  : Drawable;

Constructors

NameDescription
this ()

Fields

NameTypeDescription
_paddings Rect
_size Point
_stateList StateDrawable.StateItem[]
_refCount intcount of references to this object from Ref

Properties

NameTypeDescription
height[get] int
padding[get] Rect
width[get] int
refCount[get] intreturns current value of reference counter

Methods

NameDescription
addState (stateMask, stateValue, resourceId, transform)
addState (stateMask, stateValue, drawable)
drawTo (buf, rc, state, tilex0, tiley0)
load (document)
load (filename) load from XML file
parseList4 (value, items) parse 4 comma delimited integers
addRef () increments reference counter
releaseRef () decrement reference counter, destroy object if no more references left

Inner classes

NameDescription
StateItem

Aliases

NameDescription
~this