android.graphics.drawable
Class StateListDrawable
java.lang.Object
android.graphics.drawable.Drawable
android.graphics.drawable.DrawableContainer
android.graphics.drawable.StateListDrawable
- All Implemented Interfaces:
- Drawable.Callback
public class StateListDrawable
- extends DrawableContainer
Methods inherited from class android.graphics.drawable.DrawableContainer |
draw, getChangingConfigurations, getConstantState, getCurrent, getIntrinsicHeight, getIntrinsicWidth, getMinimumHeight, getMinimumWidth, getOpacity, getPadding, invalidateDrawable, jumpToCurrentState, onBoundsChange, onLevelChange, scheduleDrawable, selectDrawable, setAlpha, setColorFilter, setConstantState, setDither, setEnterFadeDuration, setExitFadeDuration, setVisible, unscheduleDrawable |
Methods inherited from class android.graphics.drawable.Drawable |
clearColorFilter, copyBounds, copyBounds, createFromPath, createFromResourceStream, createFromResourceStream, createFromStream, createFromXml, createFromXmlInner, getBounds, getCallback, getLevel, getState, getTransparentRegion, invalidateSelf, isVisible, resolveOpacity, scheduleSelf, setBounds, setBounds, setCallback, setChangingConfigurations, setColorFilter, setFilterBitmap, setLevel, setState, unscheduleSelf |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StateListDrawable
public StateListDrawable()
addState
public void addState(int[] stateSet,
Drawable drawable)
isStateful
public boolean isStateful()
- Overrides:
isStateful
in class DrawableContainer
onStateChange
protected boolean onStateChange(int[] stateSet)
- Overrides:
onStateChange
in class DrawableContainer
inflate
public void inflate(Resources r,
org.xmlpull.v1.XmlPullParser parser,
AttributeSet attrs)
throws org.xmlpull.v1.XmlPullParserException,
IOException
- Overrides:
inflate
in class Drawable
- Throws:
org.xmlpull.v1.XmlPullParserException
IOException
mutate
public Drawable mutate()
- Overrides:
mutate
in class DrawableContainer
Copyright © 2008-2012. All Rights Reserved.