public class CircleCheckDrawable extends CheckStateDrawable implements Animatable
Drawable.Callback, Drawable.ConstantStatemChecked, mEnabledANIMATION_DURATION, FRAME_DURATION| 构造器和说明 |
|---|
CircleCheckDrawable(ColorStateList tintStateList)
Initializes local dynamic properties from state.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
draw(Canvas canvas) |
int |
getBorderSize() |
int |
getIntervalSize() |
int |
getIntrinsicHeight() |
int |
getIntrinsicWidth() |
int |
getMarkSize() |
int |
getOpacity() |
boolean |
isRunning() |
protected void |
onBoundsChange(Rect bounds) |
protected void |
onStateChange(int color,
boolean oldChecked,
boolean newChecked) |
void |
setBorderSize(int size) |
void |
setColorFilter(ColorFilter cf) |
void |
setIntervalSize(int size) |
void |
setMarkSize(int size,
boolean isCustom) |
void |
start() |
void |
stop() |
getAlpha, getCheckedColor, getColor, getColorStateList, getUnCheckedColor, isChecked, isEnabled, isStateful, modulateColorAlpha, onStateChange, setAlpha, setColor, setColorStateList, setStateapplyTheme, canApplyTheme, clearColorFilter, copyBounds, copyBounds, createFromPath, createFromResourceStream, createFromResourceStream, createFromStream, createFromXml, createFromXml, createFromXmlInner, createFromXmlInner, getBounds, getCallback, getChangingConfigurations, getColorFilter, getConstantState, getCurrent, getDirtyBounds, getHotspotBounds, getLayoutDirection, getLevel, getMinimumHeight, getMinimumWidth, getOutline, getPadding, getState, getTransparentRegion, inflate, inflate, invalidateSelf, isAutoMirrored, isFilterBitmap, isVisible, jumpToCurrentState, mutate, onLayoutDirectionChanged, onLevelChange, resolveOpacity, scheduleSelf, setAutoMirrored, setBounds, setBounds, setCallback, setChangingConfigurations, setColorFilter, setDither, setFilterBitmap, setHotspot, setHotspotBounds, setLayoutDirection, setLevel, setTint, setTintList, setTintMode, setVisible, unscheduleSelfpublic CircleCheckDrawable(ColorStateList tintStateList)
tintStateList - ColorStateListpublic void setBorderSize(int size)
public void setIntervalSize(int size)
public void setMarkSize(int size,
boolean isCustom)
public int getBorderSize()
public int getIntervalSize()
public int getMarkSize()
protected void onStateChange(int color,
boolean oldChecked,
boolean newChecked)
onStateChange 在类中 CheckStateDrawableprotected void onBoundsChange(Rect bounds)
onBoundsChange 在类中 Drawablepublic int getIntrinsicWidth()
getIntrinsicWidth 在类中 Drawablepublic int getIntrinsicHeight()
getIntrinsicHeight 在类中 Drawablepublic void start()
start 在接口中 Animatablepublic void stop()
stop 在接口中 Animatablepublic boolean isRunning()
isRunning 在接口中 Animatablepublic void setColorFilter(ColorFilter cf)
setColorFilter 在类中 Drawablepublic int getOpacity()
getOpacity 在类中 Drawable