AnimTextView

by z56402344

z56402344 /AnimTextView
428 Stars 67 Forks Last release: Not found 10 Commits 0 Releases

Available items

No Items, yet!

The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:

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.