Fragment standard transition not animating

后端 未结 6 644
执笔经年
执笔经年 2020-11-30 22:46

I\'m using the v4 android compatibility library to develop a tablet UI using fragments specifically for Android 2.2 devices and up.

Everything is working as it shoul

6条回答
  •  暖寄归人
    2020-11-30 22:59

    Hope this helps someone. The API docs say use objectAnimator for fragment animations, but even with latest compatibility package objectAnimator in xml wasn't accepted by compiler.

    This works for me:

    For Android 3.0 or higher: declare xml objectAnimator in res/animator folder.

    With Compatibility package for less than 3.0: declare xml animation in res/anim folder.

提交回复
热议问题