开发者

Android: animated text inside edittext

Is there any way to animate text inside edittext? In my app i use editetext to show and 开发者_如何学编程edit some info.


We can put animation to any view. Text inside EditText is not a view. It is a string. We can give animation yo whole EditText but not to a string.

Thanks Deepak


Nop :), you can't animate text, but you can animate whole edittext inside some layout. So for example if you want you can put linearlayout as wrapper to the edittext and animate the edittext.


There is no way to do movement animations. But you can use spans to animate the text and use a ValueAnimator or ObjectAnimator to animate the values in the spans.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜