@Implements(android.graphics.drawable.StateListDrawable.class) public class ShadowStateListDrawable extends ShadowDrawable
Constructor | Description |
---|---|
ShadowStateListDrawable() |
Modifier and Type | Method | Description |
---|---|---|
protected void |
addState(int[] stateSet,
Drawable drawable) |
|
void |
addState(int stateId,
int resId) |
|
Drawable |
getDrawableForState(int[] stateSet) |
Non Android accessor to retrieve drawable added for a specific state.
|
int |
getResourceIdForState(int stateId) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addCorruptStreamSource, clearCorruptStreamSources, createFromPath, createFromResourceId, createFromResourceStream, createFromStream, getAlpha, getCreatedFromResId, getInputStream, getIntrinsicHeight, getIntrinsicWidth, invalidateSelf, setAlpha, setDefaultIntrinsicHeight, setDefaultIntrinsicWidth, setIntrinsicHeight, setIntrinsicWidth, validate, wasInvalidated
public void addState(int stateId, int resId)
public int getResourceIdForState(int stateId)
@Implementation protected void addState(int[] stateSet, Drawable drawable)
public Drawable getDrawableForState(int[] stateSet)
stateSet
- Int array describing the stateaddState(int[], android.graphics.drawable.Drawable)