androidkotlinanimationnumbersslide

How to make a number animation slide up and change it's value like in this gif? Android


I want to implement something exactly like the animation in this gif. Both of the views. Animated numbers. How can I achieve that? I just couldn't find an answer, Tbh I don't even know what to look for. Appreciate any help in this direction!

example


Solution

  • I have found a solution based on TextSwitcher. Using custom animations, this UI widget handles the TextViews and creates the desired effect.

    In the end, I created a highly customisable new library to spare other developers of wasting time for this explicit need. Plus Minus Quantity CardView Library

    Here is an example of usage:

    Quantity CardView