public class SingleButtonDialogFragment
extends android.app.DialogFragment
Modifier and Type | Field and Description |
---|---|
protected boolean |
isCancelable
Whether or not the notification is cancellable
|
protected java.lang.String |
message
The message to be given to the user.
|
protected int |
positiveButtonTitle
The title of the positive button
|
protected java.lang.String |
title
The title of the notification
|
Constructor and Description |
---|
SingleButtonDialogFragment(int positiveButtonTitle,
java.lang.String message,
java.lang.String title,
boolean isCancelable)
The constructor of the notification (this only sets the local variables)
|
Modifier and Type | Method and Description |
---|---|
android.app.Dialog |
onCreateDialog(android.os.Bundle savedInstanceState)
The main function to create the dialog
|
dismiss, dismissAllowingStateLoss, dump, getDialog, getShowsDialog, getTheme, isCancelable, onActivityCreated, onAttach, onCancel, onCreate, onDestroyView, onDetach, onDismiss, onGetLayoutInflater, onSaveInstanceState, onStart, onStop, setCancelable, setShowsDialog, setStyle, show, show
equals, getActivity, getAllowEnterTransitionOverlap, getAllowReturnTransitionOverlap, getArguments, getChildFragmentManager, getContext, getEnterTransition, getExitTransition, getFragmentManager, getHost, getId, getLayoutInflater, 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, isStateSaved, isVisible, onActivityResult, onAttach, onAttachFragment, onConfigurationChanged, onContextItemSelected, onCreateAnimator, onCreateContextMenu, onCreateOptionsMenu, onCreateView, onDestroy, onDestroyOptionsMenu, onHiddenChanged, onInflate, onInflate, onInflate, onLowMemory, onMultiWindowModeChanged, onMultiWindowModeChanged, onOptionsItemSelected, onOptionsMenuClosed, onPause, onPictureInPictureModeChanged, onPictureInPictureModeChanged, onPrepareOptionsMenu, onRequestPermissionsResult, onResume, onTrimMemory, onViewCreated, onViewStateRestored, postponeEnterTransition, registerForContextMenu, requestPermissions, setAllowEnterTransitionOverlap, setAllowReturnTransitionOverlap, setArguments, setEnterSharedElementCallback, setEnterTransition, setExitSharedElementCallback, setExitTransition, setHasOptionsMenu, setInitialSavedState, setMenuVisibility, setReenterTransition, setRetainInstance, setReturnTransition, setSharedElementEnterTransition, setSharedElementReturnTransition, setTargetFragment, setUserVisibleHint, shouldShowRequestPermissionRationale, startActivity, startActivity, startActivityForResult, startActivityForResult, startIntentSenderForResult, startPostponedEnterTransition, toString, unregisterForContextMenu
protected boolean isCancelable
protected java.lang.String message
protected int positiveButtonTitle
protected java.lang.String title
public SingleButtonDialogFragment(int positiveButtonTitle, java.lang.String message, java.lang.String title, boolean isCancelable)
positiveButtonTitle
- The title of the positive buttonmessage
- The message to be given to the user.title
- The title of the notificationisCancelable
- Whether or not the notification is cancellablepublic android.app.Dialog onCreateDialog(android.os.Bundle savedInstanceState)
onCreateDialog
in class android.app.DialogFragment
savedInstanceState
- the saved instance (not required)