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
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
getDrawableForState
(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
-
Constructor Details
-
ShadowStateListDrawable
public ShadowStateListDrawable()
-
-
Method Details
-
addState
-
getDrawableForState
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)
-