HTextView:Android TextView 动画效果

jopen 4年前

Android TextView 动画效果.

Screenshot

Default : Scale

EvaporateText

Fall

Line

Sparkle

Anvil

Usage

compile 'hanks.xyz:htextview-library:0.1.1'
<com.hanks.htextview.HTextView         android:id="@+id/htext"         android:layout_width="match_parent"         android:layout_height="100dp"         android:background="#000000"         android:gravity="center"         android:textColor="#FFFFFF"         android:textSize="30sp"         htext:animateType="anvil"         />

animateType can be scale evaporate fall sparkle anvil line pixelate    hTextView = (HTextView) findViewById(R.id.text);  hTextView.setAnimateType(HTextViewType.LINE);  hTextView.animateText("new simple string"); // animate

项目主页:http://www.open-open.com/lib/view/home/1450964520855