如何在TextView中淡化单个字符

时间:2013-06-28 05:48:35

标签: android animation textview

任何人都知道执行动画的任何有效方法,必须做的是显示文本,character by character

对于example

value中的TextView1225现在valuechange变为1250。现在我需要做动画,如:

1225 last digit(5)希望Faded Top new value 6看起来更明智我需要increment 1225 } until它达到1250。任何人都给我建议这样做

1 个答案:

答案 0 :(得分:0)

您可以使用TextSwitcher

看看API Demo for TextSwitcher。您可以在setInAnimation()组合中使用setOutAnimation()setText(),因此文字会动画更改。

<强>更新

我找到了一个很好的解决方案here