public abstract class Indicator extends Drawable implements Animatable
Drawable.Callback, Drawable.ConstantState| 限定符和类型 | 字段和说明 |
|---|---|
protected Rect |
drawBounds |
| 构造器和说明 |
|---|
Indicator() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addUpdateListener(ValueAnimator animator,
ValueAnimator.AnimatorUpdateListener updateListener)
Your should use this to add AnimatorUpdateListener when
create animator , otherwise , animator doesn't work when
the animation restart .
|
int |
centerX() |
int |
centerY() |
void |
draw(Canvas canvas) |
abstract void |
draw(Canvas canvas,
Paint paint) |
float |
exactCenterX() |
float |
exactCenterY() |
int |
getAlpha() |
int |
getColor() |
Rect |
getDrawBounds() |
int |
getHeight() |
int |
getOpacity() |
int |
getWidth() |
boolean |
isRunning() |
protected void |
onBoundsChange(Rect bounds) |
abstract ArrayList<ValueAnimator> |
onCreateAnimators() |
void |
postInvalidate() |
void |
setAlpha(int alpha) |
void |
setColor(int color) |
void |
setColorFilter(ColorFilter colorFilter) |
void |
setDrawBounds(int left,
int top,
int right,
int bottom) |
void |
setDrawBounds(Rect drawBounds) |
void |
start() |
void |
stop() |
applyTheme, canApplyTheme, clearColorFilter, copyBounds, copyBounds, createFromPath, createFromResourceStream, createFromResourceStream, createFromStream, createFromXml, createFromXml, createFromXmlInner, createFromXmlInner, getBounds, getCallback, getChangingConfigurations, getColorFilter, getConstantState, getCurrent, getDirtyBounds, getHotspotBounds, getIntrinsicHeight, getIntrinsicWidth, getLayoutDirection, getLevel, getMinimumHeight, getMinimumWidth, getOutline, getPadding, getState, getTransparentRegion, inflate, inflate, invalidateSelf, isAutoMirrored, isFilterBitmap, isStateful, isVisible, jumpToCurrentState, mutate, onLayoutDirectionChanged, onLevelChange, onStateChange, resolveOpacity, scheduleSelf, setAutoMirrored, setBounds, setBounds, setCallback, setChangingConfigurations, setColorFilter, setDither, setFilterBitmap, setHotspot, setHotspotBounds, setLayoutDirection, setLevel, setState, setTint, setTintList, setTintMode, setVisible, unscheduleSelfprotected Rect drawBounds
public int getColor()
public void setColor(int color)
public int getOpacity()
getOpacity 在类中 Drawablepublic void setColorFilter(ColorFilter colorFilter)
setColorFilter 在类中 Drawablepublic abstract ArrayList<ValueAnimator> onCreateAnimators()
public void start()
start 在接口中 Animatablepublic void stop()
stop 在接口中 Animatablepublic boolean isRunning()
isRunning 在接口中 Animatablepublic void addUpdateListener(ValueAnimator animator, ValueAnimator.AnimatorUpdateListener updateListener)
updateListener - protected void onBoundsChange(Rect bounds)
onBoundsChange 在类中 Drawablepublic void setDrawBounds(Rect drawBounds)
public void setDrawBounds(int left,
int top,
int right,
int bottom)
public void postInvalidate()
public Rect getDrawBounds()
public int getWidth()
public int getHeight()
public int centerX()
public int centerY()
public float exactCenterX()
public float exactCenterY()