android.transition.Transition.removeListener()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(4.7k)|赞(0)|评价(0)|浏览(225)

本文整理了Java中android.transition.Transition.removeListener()方法的一些代码示例,展示了Transition.removeListener()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Transition.removeListener()方法的具体详情如下:
包路径:android.transition.Transition
类名称:Transition
方法名:removeListener

Transition.removeListener介绍

暂无

代码示例

代码示例来源:origin: fanrunqi/MaterialLogin

@Override
public void onTransitionEnd(Transition transition) {
  transition.removeListener(this);
  animateRevealShow();
}

代码示例来源:origin: CarGuo/GSYVideoPlayer

@Override
  public void onTransitionEnd(Transition transition) {
    super.onTransitionEnd(transition);
    videoPlayer.startPlayLogic();
    transition.removeListener(this);
  }
});

代码示例来源:origin: CarGuo/GSYVideoPlayer

@Override
  public void onTransitionEnd(Transition transition) {
    super.onTransitionEnd(transition);
    videoPlayer.startPlayLogic();
    transition.removeListener(this);
  }
});

代码示例来源:origin: CarGuo/GSYVideoPlayer

@Override
  public void onTransitionEnd(Transition transition) {
    super.onTransitionEnd(transition);
    videoPlayer.startPlayLogic();
    transition.removeListener(this);
  }
});

代码示例来源:origin: xinghongfei/LookLook

@Override
protected void onDestroy() {
  if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
    getWindow().getSharedElementEnterTransition().removeListener(mListener);
  }
  super.onDestroy();
}

代码示例来源:origin: xinghongfei/LookLook

@Override
protected void onDestroy() {
  if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
    getWindow().getSharedElementReturnTransition().removeListener(mReturnHomeListener);
    getWindow().getSharedElementEnterTransition().removeListener(mEnterTrasitionListener);
  }
  mTopNewsDesPresenter.unsubscrible();
  super.onDestroy();
}

代码示例来源:origin: xinghongfei/LookLook

@Override
protected void onDestroy() {
  if(Build.VERSION.SDK_INT>=Build.VERSION_CODES.LOLLIPOP) {
    getWindow().getSharedElementReturnTransition().removeListener(zhihuReturnHomeListener);
  }
  //webview内存泄露
  if (wvZhihu != null) {
    ((ViewGroup) wvZhihu.getParent()).removeView(wvZhihu);
    wvZhihu.destroy();
    wvZhihu = null;
  }
  mIZhihuStoryPresenter.unsubscrible();
  super.onDestroy();
}

代码示例来源:origin: googlesamples/android-ActivitySceneTransitionBasic

@Override
public void onTransitionEnd(Transition transition) {
  // As the transition has ended, we can now load the full-size image
  loadFullSizeImage();
  // Make sure we remove ourselves as a listener
  transition.removeListener(this);
}

代码示例来源:origin: googlesamples/android-ActivitySceneTransitionBasic

@Override
public void onTransitionCancel(Transition transition) {
  // Make sure we remove ourselves as a listener
  transition.removeListener(this);
}

代码示例来源:origin: SpikeKing/wcl-circle-reveal-demo

@Override public void onTransitionEnd(Transition transition) {
  transition.removeListener(this);
  animateRevealShow();
}

代码示例来源:origin: Wing-Li/Material-Animations-CN

@Override
public void onTransitionEnd(Transition transition) {
  // 在这里移除侦听器是非常重要的,因为共享元素过渡在退出时再次向后执行。 如果我们不删除侦听器,这个代码将再次被触发。
  transition.removeListener(this);
  hideTarget();
  animateRevealShow(binding.toolbar);
  animateButtonsIn();
}

代码示例来源:origin: Wing-Li/Material-Animations-CN

@Override
public void onTransitionStart(Transition transition) {
  transition.removeListener(this);
  animateButtonsOut();
  animateRevealHide(binding.revealRoot);
}

代码示例来源:origin: adgvcxz/Dribbble-MVVM

@Override
      public void onTransitionEnd(Transition transition) {
        transition.removeListener(this);
//                binding.view.setAlpha(1f);
//                animateRevealShow();
      }

代码示例来源:origin: hieuapp/android-firebase-chat

@Override
public void onTransitionEnd(Transition transition) {
  transition.removeListener(this);
  animateRevealShow();
}

代码示例来源:origin: madreain/AndroidDream

@Override
public void onTransitionEnd(Transition transition) {
  videoPlayer.startPlayLogic();
  transition.removeListener(this);
}

代码示例来源:origin: lv910929/RxDemo

@Override
public void onTransitionEnd(Transition transition) {
  if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
    transition.removeListener(this);
  }
  animateRevealShow();
}

代码示例来源:origin: contentful/gallery-app-android

@Override public void onTransitionEnd(Transition transition) {
  getWindow().getSharedElementEnterTransition().removeListener(this);
  photo.setVisibility(View.GONE);
 }
});

代码示例来源:origin: WakeHao/TransitionExample

@Override
      public void onTransitionEnd(Transition transition) {
        transition.removeListener(this);
//                liney_bottom.setTransitionGroup(true);
        fab.animate()
            .scaleY(1)
            .scaleX(1)
            .start();
      }

代码示例来源:origin: rubensousa/Transitions

@Override
public void onTransitionEnd(Transition transition) {
  fab.show();
  nestedScrollView.setTranslationY(
      TransitionUtils.dpToPixels(TransitionActivity.this, 72));
  nestedScrollView.animate().alpha(1f).translationY(0)
      .setInterpolator(new DecelerateInterpolator());
  transition.removeListener(this);
}

代码示例来源:origin: wl9739/UITransitionDemo

@Override
  public void onTransitionEnd(Transition transition) {
    getWindow().getEnterTransition().removeListener(this);
    mFloatingActionButton.animate().scaleX(1).scaleY(1);
  }
});

相关文章