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 SummaryConstructors Constructor Description ShadowStateListDrawable()
- 
Method SummaryModifier 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.ShadowDrawablecreateFromResourceId, getCreatedFromResId, getInputStream, invalidateSelf, setCreatedFromResId, validate, wasInvalidated
- 
Constructor Details- 
ShadowStateListDrawablepublic ShadowStateListDrawable()
 
- 
- 
Method Details- 
addState
- 
getDrawableForStateNon 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)
 
 
-