Integrate ColorTrackView into Android Layouts
masterTo use ColorTrackView, add the view to your XML layout file. You must define a custom namespace (e.g., xmlns:zhy="http://schemas.android.com/apk/res-auto") to access its custom attributes.
ColorTrackView provides an animation effect where text or images gradually change color or fade.
<com.zhy.view.ColorTrackView
android:id="@+id/id_changeTextColorView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:layout_centerVertical="true"
android:padding="20dp"
android:background="#44ff0000"
android:gravity="center_vertical"
zhy:progress="0"
zhy:direction="left"
zhy:text="张鸿洋"
zhy:text_change_color="#ffff0000"
zhy:text_origin_color="#ff000000"
zhy:text_size="60sp" />