【发布时间】:2012-10-28 10:11:11
【问题描述】:
我正在寻找一种方法/算法来执行与 setRotationY() 等效(可从 Android API 11 获得),但使用 API 10。
感谢您的帮助。
更新,答案:
使用@JakeWharton 提供的 Android 库 http://nineoldandroids.com/(感谢 Chris.Jenkins)
if (android.os.Build.VERSION.SDK_INT > 10)
this.mBehindView.setRotationY(180);
else
ObjectAnimator.ofFloat(this.mBehindView, "rotationY", 0, 180).setDuration(0).start();
【问题讨论】:
-
RotateAnimation() 对你有用吗?请参阅 [this][1] SO 线程。 [1]:stackoverflow.com/questions/7634540/…
-
感谢您的回复,我在提问之前已经看过这篇文章,这个解决方案不适用于我的情况。还是谢谢你
标签: android animation rotation