1.效果图
2.定制的属性textColor 字体颜色
textSize 字体大小
duration 文字显示出来的时间
3.使用说明Step 1. Add it in your root build.gradle at the end of repositories:
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
Step 2. Add the dependency
dependencies {
compile 'com.github.WelliJohn:AnimTextView:1.0.0'
}
android:id="@+id/atv"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="10dp"
app:textColor="@color/colorAccent"
app:textSize="20sp"
app:duration="5000"/>
使用的时候&