Android Fragment onCreateAnimator总是输入true

时间:2014-11-27 08:01:11

标签: android android-fragments android-animation objectanimator fragment-transitions

我在htc欲望4.0.3上面临这个问题。即使片段正在退出,动画仍会一直输入...... 4.4或5.0上不存在问题

 public Animator onCreateAnimator(int transit, boolean enter, int nextAnim) {
    Animator anim;
    if (enter) {
          Log.d("Animation", "enter");
        anim = ENTER_RIGHT_ANIMATOR;
    } else {
         Log.d("Animation", "exit");
       anim = EXIT_RIGHT_ANIMATOR;
   }
    return anim;

}

0 个答案:

没有答案