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)
Deprecated.
|
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, setTintModepublic 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 Drawablepublic int getChangingConfigurations()
getChangingConfigurations in class Drawable@Deprecated public void setDither(boolean dither)
public void setFilterBitmap(boolean filter)
setFilterBitmap in class Drawablepublic Drawable.Callback getCallback()
getCallback in class Drawablepublic void setColorFilter(int color,
PorterDuff.Mode mode)
setColorFilter in class Drawablepublic void clearColorFilter()
clearColorFilter in class Drawablepublic Drawable getCurrent()
getCurrent in class Drawablepublic boolean setVisible(boolean visible,
boolean restart)
setVisible in class Drawablepublic int getIntrinsicWidth()
getIntrinsicWidth in class Drawablepublic int getIntrinsicHeight()
getIntrinsicHeight in class Drawablepublic int getMinimumWidth()
getMinimumWidth in class Drawablepublic int getMinimumHeight()
getMinimumHeight in class Drawablepublic boolean getPadding(Rect padding)
getPadding in class Drawablepublic void invalidateSelf()
invalidateSelf in class Drawablepublic void unscheduleSelf(Runnable what)
unscheduleSelf in class Drawablepublic void scheduleSelf(Runnable what, long when)
scheduleSelf in class Drawablepublic void setColorFilter(ColorFilter colorFilter)
setColorFilter in class Drawablepublic int getOpacity()
getOpacity in class Drawablepublic Drawable.ConstantState getConstantState()
getConstantState in class Drawable