开发者

Is there any way to application animation to the text of TextView only?

开发者 https://www.devze.com 2023-03-07 14:51 出处:网络
Currently I have the following code: Animation anim = AnimationUtils.loadAnimation(BridgesCloseActivity.this, R.anim.slide_in_up);

Currently I have the following code:

Animation anim = AnimationUtils.loadAnimation(BridgesCloseActivity.this, R.anim.slide_in_up); 
m开发者_Python百科yTextView.startAnimation(anim);

But this animation is applied to TextView background picture also, when I want to apply that to the text only.


There might be a way simpler method, but if everything else fails, you could try embedding a TextView and a BitmapDrawable in a FrameLayout, then apply the animation to the TextView.

0

精彩评论

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

关注公众号