FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

FadingTextView/fadingtextview at master · FishCodeLibrary/FadingTextView · GitHub

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

FadingTextView

A textview that changes its content automatically every few seconds

##Usage

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" />

Back | FazBrowse Home | New Git URL