All Projects β†’ IONsoft-Indonesia β†’ RandomNumberAnimation

IONsoft-Indonesia / RandomNumberAnimation

Licence: MIT license
Easily create random number change animation to a TextView

Programming Languages

kotlin
9241 projects

Projects that are alternatives of or similar to RandomNumberAnimation

Ubercaranimation
A demo app showing movement of car on map like in Uber.
Stars: ✭ 643 (+2281.48%)
Mutual labels:  android-animation
Propertyfindar
🏘 πŸŽƒ Real Estate Sample App with RxJava3+Coroutines Flow, Dynamic Feature Modules, Dagger Hilt, Offline First, ConcatAdapter, Animations and tests for Room, Retrofit, useCase and ViewModels with TDD.
Stars: ✭ 133 (+392.59%)
Mutual labels:  android-animation
Shimmerlayout
DEPRECATED - Memory efficient shimmering effect for Android applications by Supercharge.
Stars: ✭ 2,424 (+8877.78%)
Mutual labels:  android-animation
Confetti
An Android particle system library for displaying confetti!
Stars: ✭ 1,194 (+4322.22%)
Mutual labels:  android-animation
Medal
πŸ…An easy way to implement medal effect for Android.
Stars: ✭ 112 (+314.81%)
Mutual labels:  android-animation
Pushdown Anim Click
A library for Android developers who want to create "push down animation click" for view like spotify application.
Stars: ✭ 174 (+544.44%)
Mutual labels:  android-animation
Elasticviews
✨ An easy way to implement an elastic touch effect for Android.
Stars: ✭ 588 (+2077.78%)
Mutual labels:  android-animation
VectorIntegerView
Animated integer on Android. https://habr.com/post/420919/
Stars: ✭ 17 (-37.04%)
Mutual labels:  android-animation
Teammate Android
A Team Management app for creating tournaments and games for various sports
Stars: ✭ 116 (+329.63%)
Mutual labels:  android-animation
Android Animation Set
πŸ“š Android ζ‰€ζœ‰εŠ¨η”»η³»εˆ—θ―¦ε°½ζ•™η¨‹γ€‚ Explain all animations in Android.
Stars: ✭ 2,452 (+8981.48%)
Mutual labels:  android-animation
Android Ripple Pulse Animation
A cool ripple and pulse background animation for android
Stars: ✭ 88 (+225.93%)
Mutual labels:  android-animation
Rx2animations
Repository for android animations Rx2 wrapper
Stars: ✭ 95 (+251.85%)
Mutual labels:  android-animation
Wiggle
An Android helper library for delayed scrolling
Stars: ✭ 179 (+562.96%)
Mutual labels:  android-animation
Androidsnowfall
Snowfall App Demo
Stars: ✭ 8 (-70.37%)
Mutual labels:  android-animation
Bottomsheet
BottomSheet dialog library for Android
Stars: ✭ 219 (+711.11%)
Mutual labels:  android-animation
Animationsplayground
This repo is an attempt to implement a complex animation
Stars: ✭ 630 (+2233.33%)
Mutual labels:  android-animation
Noty
A simple library for creating animated warnings/dialogs/alerts for Android.
Stars: ✭ 136 (+403.7%)
Mutual labels:  android-animation
android-gallery
Shared element transition example with RecyclerView and ViewPager.
Stars: ✭ 38 (+40.74%)
Mutual labels:  android-animation
fast-loaded-dice-roller
The Fast Loaded Dice Roller: A Near-Optimal Exact Sampler for Discrete Probability Distributions
Stars: ✭ 41 (+51.85%)
Mutual labels:  random-number-generator
Konfetti
Celebrate more with this lightweight confetti particle system 🎊
Stars: ✭ 2,278 (+8337.04%)
Mutual labels:  android-animation

RandomNumberAnimation

Easily create random number change animation to a TextView and other subclasses of TextView

Direct subclasses:

Button, CheckedTextView, Chronometer, DigitalClock, EditText, TextClock

Indirect subclasses:

AutoCompleteTextView, CheckBox, CompoundButton, ExtractEditText, MultiAutoCompleteTextView, RadioButton, Switch, ToggleButton

Release Android Arsenal Build Status

Preview

How to use?

Step 1. Add the JitPack repository to your build file

allprojects {
  repositories {
    maven { url 'https://jitpack.io' }
  }
}

Step 2. Add the dependency

dependencies {
  implementation 'com.github.IONsoft-Indonesia:RandomNumberAnimation:1.3.3'
}

Step 3. Initialize

Java

RandomNumberAnimation randomNumberAnimation = new RandomNumberAnimation(yourTextView);

Kotlin

val randomNumberAnimation = RandomNumberAnimation(yourTextView)

Step 4. Start

Java

randomNumberAnimation.start();

Kotlin

randomNumberAnimation.start()

Step 5. Stop

Java

randomNumberAnimation.stop();
// or
randomNumberAnimation.stop(true); // to keep the random number change inside the text

Kotlin

randomNumberAnimation.stop()
// or
randomNumberAnimation.stop(true) // to keep the random number change inside the text

Optional

You can also specify the delay between frames or frame per second

Java

randomNumberAnimation.setDelay(16);
// or
randomNumberAnimation.setFPS(60);

Kotlin

randomNumberAnimation.delay = 16
// or
randomNumberAnimation.setFPS(60)

Note

This library will stop the animation directly if your Activity being destroyed using LifecycleObserver, so it will avoid Activity leak. However, if your Activity is not implementing LifecycleOwner, you should stop the animation manually when your Activity is finishing. LifecycleOwner is implemented by default by AppCompatActivity. It is also best practice if you stop the animation if it not visible to user and re-start it if it visible to user to gain the best performance

Proudly Used By

Contributing

Contributions are very welcome. If you find a bug in the library or want a feature and think you can fix it yourself, fork + pull request and we will greatly appreciate it!

We love getting pull requests for new features as well as bugs. However, when it comes to new features please also explain the use case and way you think the library should include it. If you don't want to start coding a feature without knowing if the feature will have chance of being included, open an issue and we can discuss the feature!

License

MIT License

Copyright (c) 2018 PT. IONsoft

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].