Android FragmentTransaction Custom Animation (Unknown Animator Name: Translate)

后端 未结 3 1656
无人及你
无人及你 2020-11-29 21:58

I\'m trying to get a custom animation to work with my fragment.

I\'ve followed the online tutorials but I\'ve been getting the below error:

java.lang

3条回答
  •  温柔的废话
    2020-11-29 22:27

    As @minivac replied you are mixing two APIs. Please, take a look to Display Card Flip Animations example from Android training guides to get a further understanding about how to add custom animations to fragment transactions. It solves exactly your issue.

提交回复
热议问题