Hello Koders,
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.
Components
Visible.
You would need Components that need to be animated.
In my case, they are Cardviews in Vertical Scroll Arrangement.
NonVisible.
Then you would need a Clock and Animation Utils. Properties of the clock in the next step.
Properties
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.
Blocks
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.
Output
AIA and APK
test_project.apk (5.9 MB)
test_project.aia (715.5 KB)
You can share your ideas with me I would love to see them.