android.graphics.drawable
Class LevelListDrawable

java.lang.Object
  extended by android.graphics.drawable.Drawable
      extended by android.graphics.drawable.DrawableContainer
          extended by android.graphics.drawable.LevelListDrawable
All Implemented Interfaces:
Drawable.Callback

public class LevelListDrawable
extends DrawableContainer


Nested Class Summary
 
Nested classes/interfaces inherited from class android.graphics.drawable.DrawableContainer
DrawableContainer.DrawableContainerState
 
Nested classes/interfaces inherited from class android.graphics.drawable.Drawable
Drawable.Callback, Drawable.ConstantState
 
Constructor Summary
LevelListDrawable()
           
 
Method Summary
 void addLevel(int low, int high, Drawable drawable)
           
 void inflate(Resources r, org.xmlpull.v1.XmlPullParser parser, AttributeSet attrs)
           
 Drawable mutate()
           
protected  boolean onLevelChange(int level)
           
 
Methods inherited from class android.graphics.drawable.DrawableContainer
draw, getChangingConfigurations, getConstantState, getCurrent, getIntrinsicHeight, getIntrinsicWidth, getMinimumHeight, getMinimumWidth, getOpacity, getPadding, invalidateDrawable, isStateful, jumpToCurrentState, onBoundsChange, onStateChange, 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
 

Constructor Detail

LevelListDrawable

public LevelListDrawable()
Method Detail

addLevel

public void addLevel(int low,
                     int high,
                     Drawable drawable)

onLevelChange

protected boolean onLevelChange(int level)
Overrides:
onLevelChange 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.