As of support library 26, Physics-based animations got available in Android, Spring Animation and Fling Animation. Both helps you implement Spring or Fling Animation of views without any complicated code.
How To Start
Spring Animation has some attributes like stiffness or dumping ratio which determines how view springs.
You can make views moving, rotating, scaling with Spring Animation :)
Fling Animation comes in handy when you want to fling views, and it’s really easy to use.
Set the first velocity and friction. That it.
val flingAnimation = FlingAnimation(yourView, DynamicAnimation.X)
Recently, I created a library “CropMe” using Physics-based Animations.
It helps you crop image, is extremely smooth and easy. Please check this out and give me a STAR if you like it!