Add a ShineTextView
to your layout:
<com.shine.library.ShineTextView
android:id="@+id/shine_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textSize="40sp"
android:textColor="@android:color/black"/>
To start the animation:
mShine = new Shine(DEFAULT_DURATION, DEFAULT_START_DELAY, shineList);
mShine.start(mShineTextView);
To stop it:
if (mShine != null && mShine.isAnimating()) {
mShine.cancel();
}
See the sample for a common use of this library.