有什么办法来应用动画只TextView的文本? [英] Is there any way to application animation to the text of TextView only?

查看:95
本文介绍了有什么办法来应用动画只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.

这篇关于有什么办法来应用动画只TextView的文本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆