You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
randomNumberAnimation.stop(true) // to keep the random number change inside the text
59
65
```
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
+
```
60
81
**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**
0 commit comments