Need help with AnimTextView?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

z56402344
420 Stars 66 Forks 10 Commits 1 Opened issues

Services available

!
?

Need anything else?

Contributors list

# 58,126
Java
9 commits

AnimTextView (below chart)

传入数据,执行动画 (下面有效果图)

ScreenShot

Image

简单示例

代码:

private void initView() {
    mTvBig = (AnimTextView) findViewById(R.id.mTvBig);
    mTvSmall = (AnimTextView) findViewById(R.id.mTvSmall);
    mTvBg = (AnimTextView) findViewById(R.id.mTvBg);
}

private void initData() { mTvBig.setText("2015","2016");

mTvSmall.setText("2016",true);

mTvBg.setText("2016",true);

}

xml

<duguang.animtextview.animtextview android:id="@+id/mTvBig" android:layout_width="wrap_content" android:layout_height="wrap_content" android:textsize="60dp" android:minwidth="88dp" android:minheight="77dp" android:layout_margintop="70dp" android:layout_centerhorizontal="true" android:background="@drawable/bg_lesson_head_cont"></duguang.animtextview.animtextview>

<duguang.animtextview.animtextview android:id="@+id/mTvSmall" android:layout_width="wrap_content" android:layout_height="wrap_content" android:textsize="30dp" android:layout_below="@id/mTvBig" android:layout_margintop="70dp" android:layout_centerhorizontal="true" android:background="@drawable/bg_lesson_head_cont"></duguang.animtextview.animtextview>

<duguang.animtextview.animtextview android:id="@+id/mTvBg" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@id/mTvSmall" android:layout_margintop="70dp" android:textsize="45dp" android:layout_centerhorizontal="true" android:background="@android:color/white"></duguang.animtextview.animtextview>

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.