Skip to content

Commit 08e6bc4

Browse files
authored
Update README.md
1 parent 9779408 commit 08e6bc4

File tree

1 file changed

+24
-3
lines changed

1 file changed

+24
-3
lines changed

README.md

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
11
# RandomNumberAnimation
2-
Easily create random number change animation to a TextView
2+
Easily create random number change animation to a TextView and other subclasses of TextView
3+
4+
Direct subclasses:
5+
Button, CheckedTextView, Chronometer, DigitalClock, EditText, TextClock
6+
7+
Indirect subclasses:
8+
AutoCompleteTextView, CheckBox, CompoundButton, ExtractEditText, MultiAutoCompleteTextView, RadioButton, Switch, ToggleButton
39

410
<a href="https://jitpack.io/#IONsoft-Indonesia/RandomNumberAnimation"><img alt="Release" src="https://jitpack.io/v/IONsoft-Indonesia/RandomNumberAnimation.svg"></a>
5-
<a href="http://www.methodscount.com/?lib=com.github.IONsoft-Indonesia%3ARandomNumberAnimation%3A1.1"><img src="https://img.shields.io/badge/Methods and size-core: 37 | deps: 29878 | 21 KB-e91e63.svg"/></a>
11+
<a href="http://www.methodscount.com/?lib=com.github.IONsoft-Indonesia%3ARandomNumberAnimation%3A1.2"><img src="https://img.shields.io/badge/Methods and size-core: 37 | deps: 29878 | 21 KB-e91e63.svg"/></a>
612
[![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-RandomNumberAnimation-blue.svg?style=flat)](https://android-arsenal.com/details/1/6640)
713
[![Build Status](https://travis-ci.org/IONsoft-Indonesia/RandomNumberAnimation.svg?branch=master)](https://travis-ci.org/IONsoft-Indonesia/RandomNumberAnimation)
814

@@ -23,7 +29,7 @@ allprojects {
2329
### Step 2. Add the dependency
2430
```gradle
2531
dependencies {
26-
compile 'com.github.IONsoft-Indonesia:RandomNumberAnimation:1.1'
32+
compile 'com.github.IONsoft-Indonesia:RandomNumberAnimation:1.2'
2733
}
2834
```
2935
### Step 3. Initialize
@@ -57,6 +63,21 @@ randomNumberAnimation.stop()
5763
// or
5864
randomNumberAnimation.stop(true) // to keep the random number change inside the text
5965
```
66+
67+
### Optional
68+
You can also specify the delay between frames or frame per second
69+
#### Java
70+
```java
71+
randomNumberAnimation.setDelay(16);
72+
// or
73+
randomNumberAnimation.setFPS(60);
74+
```
75+
#### Kotlin
76+
```kotlin
77+
randomNumberAnimation.delay = 16
78+
// or
79+
randomNumberAnimation.setFPS(60)
80+
```
6081
**You must call stop() when you call start(), or it will cause memory leak. To make sure it will be stopped, you can call that also in your Activity's onStop() method. See example project for more reference**
6182
## License
6283
```

0 commit comments

Comments
 (0)