![]() |
VOOZH | about |
In this article, we will take a look at how to create a bounce animation when the user taps anything, further it can be extended as per the use of the App.
To create a new project in the Android Studio, please refer to How to Create a new Project in Android Studio with Jetpack Compose.
Note: Select Kotlin as the programming language.
Create an enum class that stores the states (Released / Pressed).
enum class BounceState { Pressed, Released }MainActivity.kt: