动画4图像的同时 [英] Animate 4 images in the same time
问题描述
我要寻找一些建议什么是最好的方式在同一时间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 ObjectAnimator
s to the set and then animate them at the same time.
http://stackoverflow.com/a/13506513/379245
这篇关于动画4图像的同时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!