Android: Using ObjectAnimator to translate a View with fractional values of the View's dimension

前端 未结 5 1080
执笔经年
执笔经年 2020-11-28 05:56

It appears that the old view animations (translate, scale, and so on) are no longer accepted by the AnimationInflater, at least as of

5条回答
  •  夕颜
    夕颜 (楼主)
    2020-11-28 06:27

    Android SDK implementation of FragmentTransaction expects an Animator while, for some obscure reason, the support library implementation expects an Animation, if you use Fragment implementation from support library your translate animation will work

提交回复
热议问题