public abstract class Indicator
extends android.graphics.drawable.Drawable
implements android.graphics.drawable.Animatable
| Modifier and Type | Field and Description |
|---|---|
protected android.graphics.Rect |
drawBounds |
| Constructor and Description |
|---|
Indicator() |
| Modifier and Type | Method and Description |
|---|---|
void |
addUpdateListener(android.animation.ValueAnimator animator,
android.animation.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(android.graphics.Canvas canvas) |
abstract void |
draw(android.graphics.Canvas canvas,
android.graphics.Paint paint) |
float |
exactCenterX() |
float |
exactCenterY() |
int |
getAlpha() |
int |
getColor() |
android.graphics.Rect |
getDrawBounds() |
int |
getHeight() |
int |
getOpacity() |
int |
getWidth() |
boolean |
isRunning() |
protected void |
onBoundsChange(android.graphics.Rect bounds) |
abstract java.util.ArrayList<android.animation.ValueAnimator> |
onCreateAnimators() |
void |
postInvalidate() |
void |
setAlpha(int alpha) |
void |
setColor(int color) |
void |
setColorFilter(android.graphics.ColorFilter colorFilter) |
void |
setDrawBounds(int left,
int top,
int right,
int bottom) |
void |
setDrawBounds(android.graphics.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, unscheduleSelfpublic int getColor()
public void setColor(int color)
public void setAlpha(int alpha)
setAlpha in class android.graphics.drawable.Drawablepublic int getAlpha()
getAlpha in class android.graphics.drawable.Drawablepublic int getOpacity()
getOpacity in class android.graphics.drawable.Drawablepublic void setColorFilter(android.graphics.ColorFilter colorFilter)
setColorFilter in class android.graphics.drawable.Drawablepublic void draw(android.graphics.Canvas canvas)
draw in class android.graphics.drawable.Drawablepublic abstract void draw(android.graphics.Canvas canvas,
android.graphics.Paint paint)
public abstract java.util.ArrayList<android.animation.ValueAnimator> onCreateAnimators()
public void start()
start in interface android.graphics.drawable.Animatablepublic void stop()
stop in interface android.graphics.drawable.Animatablepublic boolean isRunning()
isRunning in interface android.graphics.drawable.Animatablepublic void addUpdateListener(android.animation.ValueAnimator animator,
android.animation.ValueAnimator.AnimatorUpdateListener updateListener)
updateListener - protected void onBoundsChange(android.graphics.Rect bounds)
onBoundsChange in class android.graphics.drawable.Drawablepublic void setDrawBounds(android.graphics.Rect drawBounds)
public void setDrawBounds(int left,
int top,
int right,
int bottom)
public void postInvalidate()
public android.graphics.Rect getDrawBounds()
public int getWidth()
public int getHeight()
public int centerX()
public int centerY()
public float exactCenterX()
public float exactCenterY()