Skip to content

wangdaliu/ShineTextView

Repository files navigation

Shine TextView for Android

ScreenShot

How to use

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();
}

Sample

See the sample for a common use of this library.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages