From ecb813d891d9039e58dce51144cf5e8f67723223 Mon Sep 17 00:00:00 2001 From: Tomer Rosenfeld Date: Fri, 20 Jan 2017 12:56:32 +0200 Subject: [PATCH] Updated docs, added new methods --- README.md | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index ec984fd..5f8b75f 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,6 @@ 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: @@ -43,9 +42,25 @@ app:timeout="500" ``` xml ``` + +### Getters & setters +To set the text dynamically, you can use + +```java +String[] texts = {"text1","text2","text3"}; +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 + +```java +FTV.setTimeOut(1000); +```