public class TransitionDrawable extends LayerDrawable implements Drawable.Callback
Drawable.Callback, Drawable.ConstantState| Constructor and Description |
|---|
TransitionDrawable(Drawable[] layers) |
| Modifier and Type | Method and Description |
|---|---|
void |
draw(Canvas canvas) |
boolean |
isCrossFadeEnabled() |
void |
resetTransition() |
void |
reverseTransition(int duration) |
void |
setCrossFadeEnabled(boolean enabled) |
void |
startTransition(int durationMillis) |
findDrawableByLayerId, getChangingConfigurations, getConstantState, getDrawable, getId, getIntrinsicHeight, getIntrinsicWidth, getNumberOfLayers, getOpacity, getPadding, inflate, invalidateDrawable, isStateful, mutate, onBoundsChange, onLevelChange, onStateChange, scheduleDrawable, setAlpha, setColorFilter, setDither, setDrawableByLayerId, setId, setLayerInset, setOpacity, setVisible, unscheduleDrawableclearColorFilter, copyBounds, copyBounds, createFromPath, createFromResourceStream, createFromResourceStream, createFromStream, createFromXml, createFromXmlInner, getBounds, getCallback, getCurrent, getLevel, getMinimumHeight, getMinimumWidth, getState, getTransparentRegion, invalidateSelf, isVisible, jumpToCurrentState, resolveOpacity, scheduleSelf, setBounds, setBounds, setCallback, setChangingConfigurations, setColorFilter, setFilterBitmap, setLevel, setState, unscheduleSelfclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinvalidateDrawable, scheduleDrawable, unscheduleDrawablepublic TransitionDrawable(Drawable[] layers)
public void startTransition(int durationMillis)
public void resetTransition()
public void reverseTransition(int duration)
public void draw(Canvas canvas)
draw in class LayerDrawablepublic void setCrossFadeEnabled(boolean enabled)
public boolean isCrossFadeEnabled()
Copyright © 2008-2013. All Rights Reserved.