Package org.robolectric.shadows
Class ShadowStateListDrawable
- java.lang.Object
-
- org.robolectric.shadows.ShadowDrawable
-
- org.robolectric.shadows.ShadowStateListDrawable
-
@Implements(android.graphics.drawable.StateListDrawable.class) public class ShadowStateListDrawable extends ShadowDrawable
-
-
Constructor Summary
Constructors Constructor Description ShadowStateListDrawable()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddState(int[] stateSet, Drawable drawable)DrawablegetDrawableForState(int[] stateSet)Non Android accessor to retrieve drawable added for a specific state.-
Methods inherited from class org.robolectric.shadows.ShadowDrawable
createFromResourceId, getCreatedFromResId, getInputStream, invalidateSelf, setCreatedFromResId, validate, wasInvalidated
-
-
-
-
Method Detail
-
addState
@Implementation protected void addState(int[] stateSet, Drawable drawable)
-
getDrawableForState
public Drawable getDrawableForState(int[] stateSet)
Non Android accessor to retrieve drawable added for a specific state.- Parameters:
stateSet- Int array describing the state- Returns:
- Drawable added via
addState(int[], android.graphics.drawable.Drawable)
-
-