开发者

Android: animated text inside edittext

开发者 https://www.devze.com 2023-03-09 04:45 出处:网络
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 st

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

精彩评论

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