| 限定符和类型 | 字段和说明 |
|---|---|
protected AnimationListener |
animationListener |
protected java.util.List<java.lang.Float> |
gapList |
protected int |
mHeight |
protected HTextView |
mHTextView |
protected android.text.TextPaint |
mOldPaint |
protected java.lang.CharSequence |
mOldText |
protected android.text.TextPaint |
mPaint |
protected java.lang.CharSequence |
mText |
protected float |
mTextSize |
protected int |
mWidth |
protected java.util.List<java.lang.Float> |
oldGapList |
protected float |
oldStartX |
protected float |
progress |
| 构造器和说明 |
|---|
HText() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected abstract void |
animatePrepare(java.lang.CharSequence text) |
protected abstract void |
animateStart(java.lang.CharSequence text) |
void |
animateText(java.lang.CharSequence text) |
protected abstract void |
drawFrame(android.graphics.Canvas canvas) |
void |
init(HTextView hTextView,
android.util.AttributeSet attrs,
int defStyle) |
protected abstract void |
initVariables() |
void |
onDraw(android.graphics.Canvas canvas) |
void |
setAnimationListener(AnimationListener listener) |
void |
setProgress(float progress) |
protected int mHeight
protected int mWidth
protected java.lang.CharSequence mText
protected java.lang.CharSequence mOldText
protected android.text.TextPaint mPaint
protected android.text.TextPaint mOldPaint
protected HTextView mHTextView
protected java.util.List<java.lang.Float> gapList
protected java.util.List<java.lang.Float> oldGapList
protected float progress
protected float mTextSize
protected float oldStartX
protected AnimationListener animationListener
public void setProgress(float progress)
public void init(HTextView hTextView, android.util.AttributeSet attrs, int defStyle)
public void animateText(java.lang.CharSequence text)
animateText 在接口中 IHTextpublic void setAnimationListener(AnimationListener listener)
setAnimationListener 在接口中 IHTextprotected abstract void initVariables()
protected abstract void animateStart(java.lang.CharSequence text)
protected abstract void animatePrepare(java.lang.CharSequence text)
protected abstract void drawFrame(android.graphics.Canvas canvas)