A textview that changes its content automatically every few seconds
##Usage
Add this to your module build.gradle
dependencies {
compile 'com.tomer:fadingtextview:1.0'
}
First, you need to create a string-array in your values folder like so:
<string-array name="examples">
<item>Hello</item>
<item>Fading TextView</item>
</string-array>Then in your layout
<com.tomer.fadingtextview.FadingTextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:height="64dp"
app:texts="@array/examples" />###Timeout
You can set the time you want each text to appear by using the timeout attribute and specify the length of time in milliseconds. Like so:
app:timeout="500"<com.tomer.fadingtextview.FadingTextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:height="64dp"
app:timeout="500"
app:texts="@array/examples" />