有什么办法来应用动画只TextView的文本?
问题描述:
目前我有以下的code:
Currently I have the following code:
Animation anim = AnimationUtils.loadAnimation(BridgesCloseActivity.this, R.anim.slide_in_up);
myTextView.startAnimation(anim);
但这个动画应用到的TextView
背景图片也,当我想了适用于纯文本。
But this animation is applied to TextView
background picture also, when I want to apply that to the text only.
答
有可能是一种方式更简单的方法,但如果一切都失败了,你可以尝试嵌入的TextView
和 BitmapDrawable
在的FrameLayout
,然后动画应用到的TextView
。
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
.