Class StateDrawable
Drawable which is drawn depending on state (see http://developer.android.com/guide/topics/resources/drawable-resource.html#StateList)
Constructors
| Name | Description |
|---|---|
this
()
|
Fields
| Name | Type | Description |
|---|---|---|
_paddings
|
Rect | |
_size
|
Point | |
_stateList
|
StateDrawable | |
_refCount
|
int | count of references to this object from Ref |
Properties
| Name | Type | Description |
|---|---|---|
height[get]
|
int | |
padding[get]
|
Rect | |
width[get]
|
int | |
refCount[get]
|
int | returns current value of reference counter |
Methods
| Name | Description |
|---|---|
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
| Name | Description |
|---|---|
StateItem
|
Aliases
| Name | Description |
|---|---|
~this
|