This is Kshitij. In this guide, I will tell you how to make a simple click animation without any extension. I am creating this as @Moulaali @dohop96 and @noolechi asked for it. I think it might help many more.
You would need Components that need to be animated.
In my case, they are Cardviews in Vertical Scroll Arrangement.
Then you would need a Clock and Animation Utils. Properties of the clock in the next step.
The properties of all the components can be set by you, meaning they can be anything you want but for a clock, the below mentioned are the properties. This time interval gives smooth animation.
The blocks are pretty simple. We have to focus on the timing of the animation and everything would be fine. Here on the CardView click event, I have shown an animation to the component stored in a variable named component. When any card view is clicked then it is stored in the same and animation utils animate the same and shrink the size and set the clock timer to enable to true. then on Clock time, event animation utils bring the component back to its original size.