@Implements(value=android.graphics.drawable.StateListDrawable.class) public class ShadowStateListDrawable extends ShadowDrawable
Constructor and Description |
---|
ShadowStateListDrawable() |
Modifier and Type | Method and Description |
---|---|
protected void |
addState(int[] stateSet,
android.graphics.drawable.Drawable drawable) |
void |
addState(int stateId,
int resId) |
android.graphics.drawable.Drawable |
getDrawableForState(int[] stateSet)
Non Android accessor to retrieve drawable added for a specific state.
|
int |
getResourceIdForState(int stateId) |
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, android.graphics.drawable.Drawable drawable)
public android.graphics.drawable.Drawable getDrawableForState(int[] stateSet)
Non Android accessor to retrieve drawable added for a specific state.
stateSet
- Int array describing the stateaddState(int[], android.graphics.drawable.Drawable)