在我的应用程序中,我想通过 ImageView
旋转 setRotationY()
。事实上,确实如此。就像从 b 到 d,镜像效果,当我在 setRotation(45)
之前使用 setRotationY()
时,结果是 setRotationY
是根据设备 Y-axis
,我想要 rotationY
根据 View self。
如何?你能指导我吗?
谢谢!
最佳答案
ObjectAnimator animation = ObjectAnimator.ofFloat(view, "rotationY", 0.0f, 360f);
animation.setDuration(3600);
animation.setRepeatCount(ObjectAnimator.INFINITE);
animation.setInterpolator(new AccelerateDecelerateInterpolator());
animation.start();
关于android - 如何在android中按Y轴旋转 View ?,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/28039658/