public class FixedSizeDrawable extends Drawable
Drawable.Callback, Drawable.ConstantState
构造器和说明 |
---|
FixedSizeDrawable(Drawable wrapped,
int width,
int height) |
限定符和类型 | 方法和说明 |
---|---|
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
在类中 Drawable
public int getChangingConfigurations()
getChangingConfigurations
在类中 Drawable
@Deprecated public void setDither(boolean dither)
public void setFilterBitmap(boolean filter)
setFilterBitmap
在类中 Drawable
public Drawable.Callback getCallback()
getCallback
在类中 Drawable
public void setColorFilter(int color, @NonNull PorterDuff.Mode mode)
setColorFilter
在类中 Drawable
public void clearColorFilter()
clearColorFilter
在类中 Drawable
@NonNull public Drawable getCurrent()
getCurrent
在类中 Drawable
public boolean setVisible(boolean visible, boolean restart)
setVisible
在类中 Drawable
public int getIntrinsicWidth()
getIntrinsicWidth
在类中 Drawable
public int getIntrinsicHeight()
getIntrinsicHeight
在类中 Drawable
public int getMinimumWidth()
getMinimumWidth
在类中 Drawable
public int getMinimumHeight()
getMinimumHeight
在类中 Drawable
public boolean getPadding(@NonNull Rect padding)
getPadding
在类中 Drawable
public void invalidateSelf()
invalidateSelf
在类中 Drawable
public void unscheduleSelf(@NonNull Runnable what)
unscheduleSelf
在类中 Drawable
public void scheduleSelf(@NonNull Runnable what, long when)
scheduleSelf
在类中 Drawable
public void setColorFilter(ColorFilter colorFilter)
setColorFilter
在类中 Drawable
public int getOpacity()
getOpacity
在类中 Drawable
public Drawable.ConstantState getConstantState()
getConstantState
在类中 Drawable