android.graphics.drawable
Class DrawableContainer
java.lang.Object
android.graphics.drawable.Drawable
android.graphics.drawable.DrawableContainer
- All Implemented Interfaces:
- Drawable.Callback
- Direct Known Subclasses:
- AnimationDrawable, LevelListDrawable, StateListDrawable
public class DrawableContainer
- extends Drawable
- implements Drawable.Callback
Methods inherited from class android.graphics.drawable.Drawable |
clearColorFilter, copyBounds, copyBounds, createFromPath, createFromResourceStream, createFromResourceStream, createFromStream, createFromXml, createFromXmlInner, getBounds, getLevel, getState, getTransparentRegion, inflate, 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 |
DrawableContainer
public DrawableContainer()
draw
public void draw(Canvas canvas)
- Specified by:
draw
in class Drawable
getChangingConfigurations
public int getChangingConfigurations()
- Overrides:
getChangingConfigurations
in class Drawable
getPadding
public boolean getPadding(Rect padding)
- Overrides:
getPadding
in class Drawable
setAlpha
public void setAlpha(int alpha)
- Specified by:
setAlpha
in class Drawable
setDither
public void setDither(boolean dither)
- Overrides:
setDither
in class Drawable
setColorFilter
public void setColorFilter(ColorFilter cf)
- Specified by:
setColorFilter
in class Drawable
onBoundsChange
protected void onBoundsChange(Rect bounds)
- Overrides:
onBoundsChange
in class Drawable
isStateful
public boolean isStateful()
- Overrides:
isStateful
in class Drawable
onStateChange
protected boolean onStateChange(int[] state)
- Overrides:
onStateChange
in class Drawable
onLevelChange
protected boolean onLevelChange(int level)
- Overrides:
onLevelChange
in class Drawable
getIntrinsicWidth
public int getIntrinsicWidth()
- Overrides:
getIntrinsicWidth
in class Drawable
getIntrinsicHeight
public int getIntrinsicHeight()
- Overrides:
getIntrinsicHeight
in class Drawable
getMinimumWidth
public int getMinimumWidth()
- Overrides:
getMinimumWidth
in class Drawable
getMinimumHeight
public int getMinimumHeight()
- Overrides:
getMinimumHeight
in class Drawable
invalidateDrawable
public void invalidateDrawable(Drawable who)
- Specified by:
invalidateDrawable
in interface Drawable.Callback
scheduleDrawable
public void scheduleDrawable(Drawable who,
java.lang.Runnable what,
long when)
- Specified by:
scheduleDrawable
in interface Drawable.Callback
unscheduleDrawable
public void unscheduleDrawable(Drawable who,
java.lang.Runnable what)
- Specified by:
unscheduleDrawable
in interface Drawable.Callback
setVisible
public boolean setVisible(boolean visible,
boolean restart)
- Overrides:
setVisible
in class Drawable
getOpacity
public int getOpacity()
- Specified by:
getOpacity
in class Drawable
selectDrawable
public boolean selectDrawable(int idx)
getCurrent
public Drawable getCurrent()
- Overrides:
getCurrent
in class Drawable
getConstantState
public Drawable.ConstantState getConstantState()
- Overrides:
getConstantState
in class Drawable
mutate
public Drawable mutate()
- Overrides:
mutate
in class Drawable
setConstantState
protected void setConstantState(DrawableContainer.DrawableContainerState state)
Copyright © 2008-2010. All Rights Reserved.