public class BaseDialogFragment extends DialogFragment
BaseDialogFragment class is intended for debug purposes. Overridden methods most of the time just adds lifecycle logging.
Some additional debug Fragments can be found in the full version. Fragment.InstantiationException, Fragment.SavedStateSTYLE_NO_FRAME, STYLE_NO_INPUT, STYLE_NO_TITLE, STYLE_NORMALTRIM_MEMORY_BACKGROUND, TRIM_MEMORY_COMPLETE, TRIM_MEMORY_MODERATE, TRIM_MEMORY_RUNNING_CRITICAL, TRIM_MEMORY_RUNNING_LOW, TRIM_MEMORY_RUNNING_MODERATE, TRIM_MEMORY_UI_HIDDEN| Constructor and Description |
|---|
BaseDialogFragment()
Initialises a newly created
BaseDialogFragment object. |
| Modifier and Type | Method and Description |
|---|---|
protected CoreLogger.Level |
getDebugLevel()
Override to change the logging level.
|
protected String |
getDebugMessage()
Override to change the logging message.
|
void |
onActivityCreated(Bundle savedInstanceState)
Please refer to the base method description.
|
void |
onActivityResult(int requestCode,
int resultCode,
Intent data)
Please refer to the base method description.
|
void |
onAttach(Activity activity)
Please refer to the base method description.
|
void |
onAttach(Context context)
Please refer to the base method description.
|
void |
onCancel(DialogInterface dialog)
Please refer to the base method description.
|
void |
onConfigurationChanged(Configuration newConfig)
Please refer to the base method description.
|
void |
onCreate(Bundle savedInstanceState)
Please refer to the base method description.
|
Dialog |
onCreateDialog(Bundle savedInstanceState)
Please refer to the base method description.
|
View |
onCreateView(LayoutInflater inflater,
ViewGroup container,
Bundle savedInstanceState)
Please refer to the base method description.
|
void |
onDestroy()
Please refer to the base method description.
|
void |
onDestroyView()
Please refer to the base method description.
|
void |
onDetach()
Please refer to the base method description.
|
void |
onDismiss(DialogInterface dialog)
Please refer to the base method description.
|
void |
onInflate(Activity activity,
AttributeSet attrs,
Bundle savedInstanceState)
Please refer to the base method description.
|
void |
onInflate(AttributeSet attrs,
Bundle savedInstanceState)
Please refer to the base method description.
|
void |
onInflate(Context context,
AttributeSet attrs,
Bundle savedInstanceState)
Please refer to the base method description.
|
void |
onLowMemory()
Please refer to the base method description.
|
void |
onPause()
Please refer to the base method description.
|
void |
onRequestPermissionsResult(int requestCode,
String[] permissions,
int[] grantResults)
Please refer to the base method description.
|
void |
onResume()
Please refer to the base method description.
|
void |
onSaveInstanceState(Bundle outState)
Please refer to the base method description.
|
void |
onStart()
Please refer to the base method description.
|
void |
onStop()
Please refer to the base method description.
|
void |
onTrimMemory(int level)
Please refer to the base method description.
|
void |
onViewCreated(View view,
Bundle savedInstanceState)
Please refer to the base method description.
|
void |
onViewStateRestored(Bundle savedInstanceState)
Please refer to the base method description.
|
void |
setRetainInstance(boolean retain)
Please refer to the base method description.
|
void |
setTargetFragment(Fragment fragment,
int requestCode)
Please refer to the base method description.
|
dismiss, dismissAllowingStateLoss, dump, getDialog, getShowsDialog, getTheme, isCancelable, setCancelable, setShowsDialog, setStyle, show, showequals, getActivity, getAllowEnterTransitionOverlap, getAllowReturnTransitionOverlap, getArguments, getChildFragmentManager, getContext, getEnterTransition, getExitTransition, getFragmentManager, getHost, getId, getLoaderManager, getParentFragment, getReenterTransition, getResources, getRetainInstance, getReturnTransition, getSharedElementEnterTransition, getSharedElementReturnTransition, getString, getString, getTag, getTargetFragment, getTargetRequestCode, getText, getUserVisibleHint, getView, hashCode, instantiate, instantiate, isAdded, isDetached, isHidden, isInLayout, isRemoving, isResumed, isVisible, onAttachFragment, onContextItemSelected, onCreateAnimator, onCreateContextMenu, onCreateOptionsMenu, onDestroyOptionsMenu, onHiddenChanged, onMultiWindowModeChanged, onOptionsItemSelected, onOptionsMenuClosed, onPictureInPictureModeChanged, onPrepareOptionsMenu, registerForContextMenu, requestPermissions, setAllowEnterTransitionOverlap, setAllowReturnTransitionOverlap, setArguments, setEnterSharedElementCallback, setEnterTransition, setExitSharedElementCallback, setExitTransition, setHasOptionsMenu, setInitialSavedState, setMenuVisibility, setReenterTransition, setReturnTransition, setSharedElementEnterTransition, setSharedElementReturnTransition, setUserVisibleHint, shouldShowRequestPermissionRationale, startActivity, startActivity, startActivityForResult, startActivityForResult, startIntentSenderForResult, toString, unregisterForContextMenupublic BaseDialogFragment()
BaseDialogFragment object.protected String getDebugMessage()
protected CoreLogger.Level getDebugLevel()
WARNING.@CallSuper public void onActivityCreated(Bundle savedInstanceState)
onActivityCreated in class DialogFragment@CallSuper public void onActivityResult(int requestCode, int resultCode, Intent data)
onActivityResult in class Fragment@CallSuper public void onAttach(Activity activity)
@CallSuper public void onAttach(Context context)
onAttach in class DialogFragment@CallSuper public void onCancel(DialogInterface dialog)
onCancel in interface DialogInterface.OnCancelListeneronCancel in class DialogFragment@CallSuper public void onConfigurationChanged(Configuration newConfig)
onConfigurationChanged in interface ComponentCallbacksonConfigurationChanged in class Fragment@CallSuper public void onCreate(Bundle savedInstanceState)
onCreate in class DialogFragmentpublic Dialog onCreateDialog(Bundle savedInstanceState)
onCreateDialog in class DialogFragment@CallSuper public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
onCreateView in class Fragment@CallSuper public void onDestroy()
@CallSuper public void onDestroyView()
onDestroyView in class DialogFragment@CallSuper public void onDetach()
onDetach in class DialogFragment@CallSuper public void onDismiss(DialogInterface dialog)
onDismiss in interface DialogInterface.OnDismissListeneronDismiss in class DialogFragment@CallSuper public void onInflate(AttributeSet attrs, Bundle savedInstanceState)
@CallSuper public void onInflate(Activity activity, AttributeSet attrs, Bundle savedInstanceState)
@CallSuper public void onInflate(Context context, AttributeSet attrs, Bundle savedInstanceState)
@CallSuper public void onLowMemory()
onLowMemory in interface ComponentCallbacksonLowMemory in class Fragment@CallSuper public void onPause()
@CallSuper public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults)
onRequestPermissionsResult in class Fragment@CallSuper public void onResume()
@CallSuper public void onSaveInstanceState(Bundle outState)
onSaveInstanceState in class DialogFragment@CallSuper public void onStart()
onStart in class DialogFragment@CallSuper public void onStop()
onStop in class DialogFragment@CallSuper public void onTrimMemory(int level)
onTrimMemory in interface ComponentCallbacks2onTrimMemory in class Fragment@CallSuper public void onViewCreated(View view, Bundle savedInstanceState)
onViewCreated in class Fragment@CallSuper public void onViewStateRestored(Bundle savedInstanceState)
onViewStateRestored in class Fragment@CallSuper public void setRetainInstance(boolean retain)
setRetainInstance in class Fragment@CallSuper public void setTargetFragment(Fragment fragment, int requestCode)
setTargetFragment in class Fragment
Copyright © 2015-2017 akha, a.k.a. Alexander Kharitonov
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.