热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

android.support.v4.app.Fragment.onPause()方法的使用及代码示例

本文整理了Java中android.support.v4.app.Fragment.onPause()方法的一些代码示例,展示了Fragment.onPau

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

Fragment.onPause介绍

[英]Called when the Fragment is no longer resumed. This is generally tied to Activity#onPause() of the containing Activity's lifecycle.
[中]当片段不再恢复时调用。这通常与包含活动生命周期的活动#onPause()有关。

代码示例

代码示例来源:origin: naman14/Timber

@Override
public void onPause() {
super.onPause();
fragmentPaused = true;
}

代码示例来源:origin: naman14/Timber

@Override
public void onPause() {
super.onPause();
fragmentPaused = true;
}

代码示例来源:origin: rey5137/material

@Override
public void onPause() {
super.onPause();
}

代码示例来源:origin: rey5137/material

@Override
public void onPause() {
super.onPause();
}

代码示例来源:origin: commonsguy/cw-omnibus

@Override
public void onPause() {
Log.d(getClass().getSimpleName(), "onPause()");
super.onPause();
}

代码示例来源:origin: commonsguy/cw-omnibus

@Override
public void onPause() {
Log.d(getClass().getSimpleName(), "onPause()");
super.onPause();
}

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

@Override
public void onPause() {
super.onPause();
GSYVideoManager.onPause();
}

代码示例来源:origin: rey5137/material

@Override
public void onPause() {
super.onPause();
if(mBottomSheetDialog != null){
mBottomSheetDialog.dismissImmediately();
mBottomSheetDialog = null;
}
}

代码示例来源:origin: rey5137/material

@Override
public void onPause() {
super.onPause();

mHandler.removeCallbacksAndMessages(null);
pv_circular_determinate_in_out.setVisibility(View.GONE);
}

代码示例来源:origin: TeamNewPipe/NewPipe

@Override
public void onPause() {
super.onPause();
saveChanges();
}

代码示例来源:origin: commonsguy/cw-omnibus

/**
* Called when the fragment is visible to the user and actively running. Resumes the WebView.
*/
@Override
public void onPause() {
super.onPause();
mWebView.onPause();
}

代码示例来源:origin: naman14/Timber

@Override
public void onPause() {
super.onPause();
if (mPreferences.lastOpenedIsStartPagePreference()) {
mPreferences.setStartPageIndex(viewPager.getCurrentItem());
}
}

代码示例来源:origin: commonsguy/cw-omnibus

@Override
public void onPause() {
if (loaded) {
new SaveThread(editor.getText().toString(),
(File)getArguments().getSerializable(KEY_FILE)).start();
}
super.onPause();
}

代码示例来源:origin: commonsguy/cw-omnibus

@Override
public void onPause() {
if (loaded) {
new SaveThread(editor.getText().toString(),
(File)getArguments().getSerializable(KEY_FILE)).start();
}
super.onPause();
}

代码示例来源:origin: aa112901/remusic

@Override
public void onPause() {
getActivity().unregisterReceiver(mStatusListener);
super.onPause();
}

代码示例来源:origin: chentao0707/SimplifyReader

@Override
public void onPause() {
super.onPause();
if (getUserVisibleHint()) {
onUserInvisible();
}
}

代码示例来源:origin: aa112901/remusic

@Override
public void onPause() {
super.onPause();
getActivity().unregisterReceiver(mStatusListener);
}

代码示例来源:origin: square/otto

@Override public void onPause() {
super.onPause();
BusProvider.getInstance().unregister(this);
// Stop existing download, if it exists.
if (downloadTask != null) {
downloadTask.cancel(true);
downloadTask = null;
}
}

代码示例来源:origin: libgdx/libgdx

@Override
public void onPause () {
boolean isCOntinuous= graphics.isContinuousRendering();
boolean isCOntinuousEnforced= AndroidGraphics.enforceContinuousRendering;
// from here we don't want non continuous rendering
AndroidGraphics.enforceCOntinuousRendering= true;
graphics.setContinuousRendering(true);
// calls to setContinuousRendering(false) from other thread (ex: GLThread)
// will be ignored at this point...
graphics.pause();
input.onPause();
// davebaol & mobidevelop:
// This fragment (or one of the parent) is currently being removed from its activity or the activity is in the process of finishing
if (isRemoving() || isAnyParentFragmentRemoving() || getActivity().isFinishing()) {
graphics.clearManagedCaches();
graphics.destroy();
}
AndroidGraphics.enforceCOntinuousRendering= isContinuousEnforced;
graphics.setContinuousRendering(isContinuous);
graphics.onPauseGLSurfaceView();
super.onPause();
}

代码示例来源:origin: libgdx/libgdx

@Override
public void onPause () {
boolean isCOntinuous= graphics.isContinuousRendering();
boolean isCOntinuousEnforced= AndroidGraphics.enforceContinuousRendering;
// from here we don't want non continuous rendering
AndroidGraphics.enforceCOntinuousRendering= true;
graphics.setContinuousRendering(true);
// calls to setContinuousRendering(false) from other thread (ex: GLThread)
// will be ignored at this point...
graphics.pause();
input.onPause();
// davebaol & mobidevelop:
// This fragment (or one of the parent) is currently being removed from its activity or the activity is in the process of finishing
if (isRemoving() || isAnyParentFragmentRemoving() || getActivity().isFinishing()) {
graphics.clearManagedCaches();
graphics.destroy();
}
AndroidGraphics.enforceCOntinuousRendering= isContinuousEnforced;
graphics.setContinuousRendering(isContinuous);
graphics.onPauseGLSurfaceView();
super.onPause();
}

推荐阅读
author-avatar
手机用户2502939965
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有