Class StateDrawable
Drawable
which is drawn depending on state (see http://developer.android.com/guide/topics/resources/drawable-resource.html#StateList)
Inherits from
-
Drawable
(base class)
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
|
|
addState
|
|
drawTo
|
|
load
|
|
load
|
load from XML file
|
parseList4
|
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
|
Authors
Vadim Lopatin, coolreader.org@gmail.com
Copyright
Vadim Lopatin, 2014
License
Boost License 1.0