任何人都知道执行动画的任何有效方法,必须做的是显示文本,character by character
,
对于example
我value
中的TextView
为1225
现在value
将change
变为1250
。现在我需要做动画,如:
1225
last digit
(5)希望Faded Top
new value
6看起来更明智我需要increment
1225
} until
它达到1250
。任何人都给我建议这样做
答案 0 :(得分:0)
您可以使用TextSwitcher。
看看API Demo for TextSwitcher。您可以在setInAnimation()
组合中使用setOutAnimation()
和setText()
,因此文字会动画更改。
<强>更新强>
我找到了一个很好的解决方案here!