【发布时间】:2012-12-10 03:19:28
【问题描述】:
我尝试使用 Fragment 和 objectAnimator 制作像 here 这样的翻转动画,在 Android 4.1 上一切正常,但是当我尝试添加 android-support-v13. jar 时,使用 FragmentActivity 并在旧版本上启动它,动画介于Fragments 导致应用程序崩溃并出现此错误:
java.lang.RuntimeException: Unknown animation name: objectAnimator
请问,你能告诉我如何使用 objectAnimator 或如何使用常见的 Android 动画创建翻转动画吗?
UPD:我也尝试使用http://nineoldandroids.com/,但我不明白它如何用于活动过渡动画。
【问题讨论】:
-
看看这个stackoverflow.com/questions/5596860/… 说android.R.animator 在使用animatorsetCustomAnimation 时坏了。
标签: android android-fragments objectanimator