public class BaseListPreferenceDialogFragment extends ListPreferenceDialogFragment
BaseListPreferenceDialogFragment
class is intended for debug purposes. Overridden methods most of the time just adds lifecycle logging.Fragment.InstantiationException, Fragment.SavedState
ARG_KEY
STYLE_NO_FRAME, STYLE_NO_INPUT, STYLE_NO_TITLE, STYLE_NORMAL
TRIM_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 |
---|
BaseListPreferenceDialogFragment()
Initialises a newly created
BaseListPreferenceDialogFragment 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.
|
protected void |
onBindDialogView(View view)
Please refer to the base method description.
|
void |
onCancel(DialogInterface dialog)
Please refer to the base method description.
|
void |
onClick(DialogInterface dialog,
int which)
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.
|
protected View |
onCreateDialogView(Context context)
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 |
onDialogClosed(boolean positiveResult)
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.
|
protected void |
onPrepareDialogBuilder(AlertDialog.Builder builder)
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.
|
newInstance
getPreference, needInputMethod
dismiss, dismissAllowingStateLoss, dump, getDialog, getShowsDialog, getTheme, isCancelable, setCancelable, setShowsDialog, setStyle, show, show
equals, 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, unregisterForContextMenu
public BaseListPreferenceDialogFragment()
BaseListPreferenceDialogFragment
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 protected void onBindDialogView(View view)
onBindDialogView
in class PreferenceDialogFragment
@CallSuper public void onCancel(DialogInterface dialog)
onCancel
in interface DialogInterface.OnCancelListener
onCancel
in class DialogFragment
@CallSuper public void onClick(DialogInterface dialog, int which)
onClick
in interface DialogInterface.OnClickListener
onClick
in class PreferenceDialogFragment
@CallSuper public void onConfigurationChanged(Configuration newConfig)
onConfigurationChanged
in interface ComponentCallbacks
onConfigurationChanged
in class Fragment
@CallSuper public void onCreate(Bundle savedInstanceState)
onCreate
in class ListPreferenceDialogFragment
public Dialog onCreateDialog(Bundle savedInstanceState)
onCreateDialog
in class PreferenceDialogFragment
@CallSuper protected View onCreateDialogView(Context context)
onCreateDialogView
in class PreferenceDialogFragment
@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 onDialogClosed(boolean positiveResult)
onDialogClosed
in class ListPreferenceDialogFragment
@CallSuper public void onDismiss(DialogInterface dialog)
onDismiss
in interface DialogInterface.OnDismissListener
onDismiss
in class PreferenceDialogFragment
@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 ComponentCallbacks
onLowMemory
in class Fragment
@CallSuper public void onPause()
@CallSuper protected void onPrepareDialogBuilder(AlertDialog.Builder builder)
onPrepareDialogBuilder
in class ListPreferenceDialogFragment
@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 ListPreferenceDialogFragment
@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 ComponentCallbacks2
onTrimMemory
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.