动画4图像的同时 [英] Animate 4 images in the same time

查看:142
本文介绍了动画4图像的同时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要寻找一些建议什么是最好的方式在同一时间4动画图像。我想做fade_in / fade_out动画。我想我会需要4个线程对每个单独的动画。我读了一些有关AsyncTask的,但我不认为这对我来说是很好的解决方案。谁能给我意见,我怎么能实现呢?

I am looking for some advice what is the best way animate 4 images in the same time. I want to do fade_in/fade_out animation. I think I will need 4 threads for every animation separately. I read something about AsyncTask but I don't think it is good solution for me. Can anyone give me advice how can I achieve it?

推荐答案

您想使用什么是 AnimatorSet 及其生成器 http://developer.android.com/reference/android/动画/ AnimatorSet.html
http://developer.android.com/reference/android/animation/AnimatorSet.Builder.html

您可以设定的添加几个 ObjectAnimator 和然后同时动画。
http://stackoverflow.com/a/13506513/379245

You can add several ObjectAnimators to the set and then animate them at the same time. http://stackoverflow.com/a/13506513/379245

这篇关于动画4图像的同时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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