在Android的可拉伸应用动画 [英] Apply an Animation on a Drawable in Android

查看:98
本文介绍了在Android的可拉伸应用动画的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我加入一个发光的动画效果,以一个标志。到目前为止,我已经设法获得辉光图像背后的标志,使用LayeredDrawable,但我无法弄清楚如何制作动画。我发现,AlphaAnimation会达到预期的效果,但遗憾的是我只能把它应用在看法,并不可绘制。我怎样才能达到这种效果呢?

I am adding a glow animation effect to a logo. So far, I have managed to get the glow image behind the logo, using a LayeredDrawable, but I can't figure out how to animate it. I have found that AlphaAnimation would achieve the desired effect, but unfortunately I can only apply it on Views, not Drawables. How can I achieve this effect?

推荐答案

的Andr​​oid 3.0推出的属性动画

Android 3.0 introduced Property Animations.

不幸的是,这仅限于安卓3.0及以上,这将不会在手机上得到任何时间很快。

Unfortunately, this is limited to Android 3.0 and up which won't get on phones any time soon.

这篇关于在Android的可拉伸应用动画的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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