动画多imageviews依赖性

动画多imageviews依赖性

本文介绍了动画多imageviews依赖性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我多动画的imageviews组成玩偶开箱。然而,所有这些动画的独立工作。虽然它看起来完美无瑕,你不能告诉动画独立工作,有没有办法使用机器人工具和建立imageviews之间的关系,只是推出一个动画?换句话说,有没有什么办法,由于缺乏更好的话,针的玩偶现成头春,所以当春乃动一下,头就跟着移动?

I am animating multiple imageviews that make up a jack-in-the-box. However, all of these animations work independently. Though it looks flawless and you can't tell the animations work independently, is there any way to use Androids tools and build relations between the imageviews and just launch one animation? In other words, is there any way to, for lack of better words, "pin" the jack-in-the-box head to the spring, so when the spring is moving about, the head would move with it?

推荐答案

您可以在同一把两者的的ImageView 取值的LinearLayout (有一个布局仅持有这两个的ImageView 与正在),并应用动画的LinearLayout 而不是任何的的ImageView 秒,在这样的的LinearLayout 将移动的ImageView 取值在一起。

You could put both of the ImageViews within the same LinearLayout (have a layout that only holds those two ImageViews that is), and apply the Animation to the LinearLayout instead of either of the ImageViews, in that way the LinearLayout will move the ImageViews together.

这篇关于动画多imageviews依赖性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-20 00:38