public abstract class LoadingRenderer
extends java.lang.Object
Base Renderer.
Created by yanzhenjie on 17-3-27.| Modifier and Type | Field and Description |
|---|---|
protected android.graphics.Rect |
mBounds
Whenever
LoadingDrawable boundary changes mBounds will be updated. |
protected long |
mDuration |
protected float |
mHeight |
protected float |
mWidth |
| Constructor and Description |
|---|
LoadingRenderer(android.content.Context context) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addRenderListener(android.animation.Animator.AnimatorListener animatorListener) |
protected abstract void |
computeRender(float renderProgress) |
protected void |
draw(android.graphics.Canvas canvas) |
protected void |
draw(android.graphics.Canvas canvas,
android.graphics.Rect bounds)
Deprecated.
|
protected abstract void |
reset() |
protected abstract void |
setAlpha(int alpha) |
protected abstract void |
setColorFilter(android.graphics.ColorFilter cf) |
protected final android.graphics.Rect mBounds
LoadingDrawable boundary changes mBounds will be updated.
More details you can see LoadingDrawable.onBoundsChange(Rect)protected long mDuration
protected float mWidth
protected float mHeight
@Deprecated
protected void draw(android.graphics.Canvas canvas,
android.graphics.Rect bounds)
protected void draw(android.graphics.Canvas canvas)
protected abstract void computeRender(float renderProgress)
protected abstract void setAlpha(int alpha)
protected abstract void setColorFilter(android.graphics.ColorFilter cf)
protected abstract void reset()
protected void addRenderListener(android.animation.Animator.AnimatorListener animatorListener)