Like a faded top single character in a TextView

Anyone know of any effective way to do the animation, what you need to do is display the text, character by character ,

With example

I have a value in a TextView like 1225 Now the value will change to 1250 . Now I need to make the animation as follows:

1225 last digit (5) wants Faded Top , and new value 6 will appear as wise, I need an increment value of 1225 until reach 1250 . Someone give me an offer to do this

+4
source share
1 answer

You can use TextSwitcher .

Take a look at the Demo API for TextSwitcher . You can use setInAnimation() and setOutAnimation() in a combination of con setText() , so the text will be animated.

UPDATE

I found a good solution here !

0
source

Source: https://habr.com/ru/post/1488623/


All Articles