让TextView产生动画的Android库:HTextView
admin
9年前
让TextView产生动画的Android库:HTextView
see iOS Effects
Screenshot
Usage
compile 'hanks.xyz:htextview-library:0.1.3'
xmlns:htext="http://schemas.android.com/apk/res-auto"
<com.hanks.htextview.HTextView android:id="@+id/text" 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 typer rainbow
hTextView = (HTextView) findViewById(R.id.text); hTextView.setAnimateType(HTextViewType.LINE); hTextView.animateText("new simple string"); // animate
</div>