Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
README changes merge
  • Loading branch information
rosenpin committed Mar 10, 2017
2 parents ce950ca + 85d6843 commit 94f2f98
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Add this to your module build.gradle

``` gradle
dependencies {
   compile 'com.tomer:fadingtextview:1.6'
   compile 'com.tomer:fadingtextview:1.7'
}
```
###Texts
Expand All @@ -46,7 +46,6 @@ 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" />
```

Expand All @@ -63,7 +62,6 @@ app:timeout="500"
android:id="@+id/fadingTextView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:height="64dp"
app:timeout="500"
app:texts="@array/examples" />
```
Expand All @@ -77,16 +75,20 @@ FadingTextView FTV = (FadingTextView) findViewById(R.id.fadingTextView);
FTV.setTexts(texts); //You can use an array resource or a string array as the parameter
```

To set the timeout between text change in milliseconds you can use. Timeout must be longer than 0 (1 or higher)
To set the timeout between text changes you can use:

```java
FTV.setTimeOut(1000);
```

To set the timeout between text change using other time units (i.e. seconds, minutes) you can use. Timeout must be any number higher than 0
//For text change once every hour
FTV.setTimeout(60, FadingTextView.TimeUnit.MINUTES);

```java
//For text change once every half a minute
FTV.setTimeout(0.5, FadingTextView.TimeUnit.MINUTES);

//For text change every 10 seconds
FTV.setTimeout(10, FadingTextView.TimeUnit.SECONDS);

//For text change every 500 milliseconds (0.5 seconds)
FTV.setTimeout(500, FadingTextView.TimeUnit.MILLISECONDS);
```

## License
Expand Down

0 comments on commit 94f2f98

Please sign in to comment.