Android 旋转动画
我有一个如下所示的布局:(没有箭头)
布局周围动物的图片。 我想制作一个旋转动画,以便所有动物都会朝该方向移动 箭头(实际上,它们应该能够围绕视图旋转 360 度)并替换彼此的位置。但要保持自己的方向——这样每只动物都会继续用腿站立,而不是用头:-)
我已经被这个问题困扰了两天了,我不知道如何实现这个,
请帮忙吗? 谢谢你, 罗恩
i have a layout that looks like this: (without the arrows)
the pictures of the animals around the layout.
i want to make a rotating animation so that all the animals will go to to the direction
of the arrows (actually, they should be able to rotate 360 around the view) and replace each other's location. BUT keep their own orientation - so that every animal will keep standing on her legs, and not her head :-)
I'm stuck with this problem for 2 days now, and i have no idea how to implement this
please any help?
Thank you,
Ron
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以手动设置它们的动画,就像游戏精灵一样。另一种选择是反对旋转动画:
rotate_left.xmlrotate_right.xml
布局
xml文件(只是顶部和底部的文本框。您必须自己实现4个角;)
在您的活动中:
出于某种原因我不能进行旋转以正确使用线性插值器。它不断加速/减速。可能必须在代码中做到这一点。
You could manually animate them, like game sprites. Another option would be opposing rotate animations:
rotate_left.xml
rotate_right.xml
Layout xml file (just a text box on top and bottom. You'll have to implement the 4 corners yourself ;)
In your Activity:
For some reason I can't get the rotate to use the linear interpolator properly. It keeps speeding up/slowing down. Might have to do that in code.