作者:手机用户2502939965 | 来源:互联网 | 2023-09-03 15:58
本文整理了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();
}