public class FixedSizeDrawable extends Drawable
Drawable.Callback, Drawable.ConstantState
Constructor and Description |
---|
FixedSizeDrawable(Drawable wrapped,
int width,
int height) |
Modifier and Type | Method and Description |
---|---|
void |
clearColorFilter() |
void |
draw(Canvas canvas) |
int |
getAlpha() |
Drawable.Callback |
getCallback() |
int |
getChangingConfigurations() |
Drawable.ConstantState |
getConstantState() |
Drawable |
getCurrent() |
int |
getIntrinsicHeight() |
int |
getIntrinsicWidth() |
int |
getMinimumHeight() |
int |
getMinimumWidth() |
int |
getOpacity() |
boolean |
getPadding(Rect padding) |
void |
invalidateSelf() |
Drawable |
mutate() |
void |
scheduleSelf(Runnable what,
long when) |
void |
setAlpha(int i) |
void |
setBounds(int left,
int top,
int right,
int bottom) |
void |
setBounds(Rect bounds) |
void |
setChangingConfigurations(int configs) |
void |
setColorFilter(ColorFilter colorFilter) |
void |
setColorFilter(int color,
PorterDuff.Mode mode) |
void |
setDither(boolean dither) |
void |
setFilterBitmap(boolean filter) |
boolean |
setVisible(boolean visible,
boolean restart) |
void |
unscheduleSelf(Runnable what) |
applyTheme, canApplyTheme, copyBounds, copyBounds, createFromPath, createFromResourceStream, createFromResourceStream, createFromStream, createFromXml, createFromXml, createFromXmlInner, createFromXmlInner, getBounds, getColorFilter, getDirtyBounds, getHotspotBounds, getLayoutDirection, getLevel, getOutline, getState, getTransparentRegion, inflate, inflate, isAutoMirrored, isFilterBitmap, isStateful, isVisible, jumpToCurrentState, onBoundsChange, onLayoutDirectionChanged, onLevelChange, onStateChange, resolveOpacity, setAutoMirrored, setCallback, setHotspot, setHotspotBounds, setLayoutDirection, setLevel, setState, setTint, setTintList, setTintMode
public FixedSizeDrawable(Drawable wrapped, int width, int height)
public void setBounds(int left, int top, int right, int bottom)
public void setChangingConfigurations(int configs)
setChangingConfigurations
in class Drawable
public int getChangingConfigurations()
getChangingConfigurations
in class Drawable
public void setFilterBitmap(boolean filter)
setFilterBitmap
in class Drawable
public Drawable.Callback getCallback()
getCallback
in class Drawable
public void setColorFilter(int color, PorterDuff.Mode mode)
setColorFilter
in class Drawable
public void clearColorFilter()
clearColorFilter
in class Drawable
public Drawable getCurrent()
getCurrent
in class Drawable
public boolean setVisible(boolean visible, boolean restart)
setVisible
in class Drawable
public int getIntrinsicWidth()
getIntrinsicWidth
in class Drawable
public int getIntrinsicHeight()
getIntrinsicHeight
in class Drawable
public int getMinimumWidth()
getMinimumWidth
in class Drawable
public int getMinimumHeight()
getMinimumHeight
in class Drawable
public boolean getPadding(Rect padding)
getPadding
in class Drawable
public void invalidateSelf()
invalidateSelf
in class Drawable
public void unscheduleSelf(Runnable what)
unscheduleSelf
in class Drawable
public void scheduleSelf(Runnable what, long when)
scheduleSelf
in class Drawable
public void setColorFilter(ColorFilter colorFilter)
setColorFilter
in class Drawable
public int getOpacity()
getOpacity
in class Drawable
public Drawable.ConstantState getConstantState()
getConstantState
in class Drawable