动画图片过渡
我刚开始从事 Android 开发,但我有点陷入困境。基本上,我有一个带有动态添加的 ImageView 的布局,并且我想让 ImageView 每隔一段时间更改一次图像。但是,我想添加某种过渡或变化的动画,例如翻转或闪光。
我真的不知道从哪里开始寻找这个问题的答案。非常感谢任何帮助。
I'm starting out with Android development, and I'm kind of stuck. Basically, I have a layout with dynamically added ImageViews, and I want to have the ImageViews change their image every once in a while. However, I'd like to add some sort of transition or changing animation, like a flip or a flash.
I don't really know where to even start to look for an answer to this question. Any help is greatly appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
android框架完全涵盖了这一点:
http://developer.android.com /guide/topics/graphics/view-animation.html
基本上,您希望在可绘制对象(图像视图)之间定义“补间”动画。定义动画后,您甚至可以定义一组可绘制对象,以使用帧动画依次显示。
查看以下所有详细信息:
http://developer.android .com/guide/topics/resources/animation-resource.html
The android framework has this totally covered:
http://developer.android.com/guide/topics/graphics/view-animation.html
Basically, you are looking to define "tween" animations between your drawables (imageviews). After you define your animations you can even define a set of drawables to show one after the other using frame-animation.
Check out the following for all the gory details:
http://developer.android.com/guide/topics/resources/animation-resource.html