public class GameOverDialogFragment
extends android.support.v4.app.DialogFragment
Modifier and Type | Class and Description |
---|---|
static interface |
GameOverDialogFragment.GameOverDialogListener |
Constructor and Description |
---|
GameOverDialogFragment() |
Modifier and Type | Method and Description |
---|---|
void |
onAttach(android.content.Context activity)
is called when the dialog fragment is shown in an activity
|
void |
onCancel(android.content.DialogInterface dialog)
is called when the user presses back or the area outside the dialog
goes back to the game by calling the same method as the negative option
|
android.app.Dialog |
onCreateDialog(android.os.Bundle savedInstanceState)
creates a new Dialog containing an image, name and short info
|
dismiss, dismissAllowingStateLoss, getDialog, getLayoutInflater, getShowsDialog, getTheme, isCancelable, onActivityCreated, onCreate, onDestroyView, onDetach, onDismiss, onSaveInstanceState, onStart, onStop, setCancelable, setShowsDialog, setStyle, setupDialog, show, show
dump, 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, hasOptionsMenu, instantiate, instantiate, isAdded, isDetached, isHidden, isInLayout, isMenuVisible, isRemoving, isResumed, isVisible, onActivityResult, onAttach, onAttachFragment, onConfigurationChanged, onContextItemSelected, onCreateAnimation, onCreateContextMenu, onCreateOptionsMenu, onCreateView, onDestroy, onDestroyOptionsMenu, onHiddenChanged, onInflate, onInflate, onLowMemory, onMultiWindowModeChanged, onOptionsItemSelected, onOptionsMenuClosed, onPause, onPictureInPictureModeChanged, onPrepareOptionsMenu, onRequestPermissionsResult, onResume, 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
public void onAttach(android.content.Context activity)
onAttach
in class android.support.v4.app.DialogFragment
activity
- the activiy to which the fragment is attachedpublic android.app.Dialog onCreateDialog(android.os.Bundle savedInstanceState)
onCreateDialog
in class android.support.v4.app.DialogFragment
savedInstanceState
- public void onCancel(android.content.DialogInterface dialog)
onCancel
in interface android.content.DialogInterface.OnCancelListener
onCancel
in class android.support.v4.app.DialogFragment
dialog
-