android.app
Class DialogFragment
java.lang.Object
android.app.Fragment
android.app.DialogFragment
- All Implemented Interfaces:
- ComponentCallbacks, ComponentCallbacks2, DialogInterface.OnCancelListener, DialogInterface.OnDismissListener, View.OnCreateContextMenuListener
public class DialogFragment
- extends Fragment
- implements DialogInterface.OnCancelListener, DialogInterface.OnDismissListener
| Methods inherited from class android.app.Fragment |
equals, getActivity, getArguments, getFragmentManager, getId, getLoaderManager, getResources, getRetainInstance, getString, getString, getTag, getTargetFragment, getTargetRequestCode, getText, getUserVisibleHint, getView, hashCode, instantiate, instantiate, isAdded, isDetached, isHidden, isInLayout, isRemoving, isResumed, isVisible, onActivityResult, onConfigurationChanged, onContextItemSelected, onCreateAnimator, onCreateContextMenu, onCreateOptionsMenu, onCreateView, onDestroy, onDestroyOptionsMenu, onHiddenChanged, onInflate, onInflate, onLowMemory, onOptionsItemSelected, onOptionsMenuClosed, onPause, onPrepareOptionsMenu, onResume, onTrimMemory, onViewCreated, registerForContextMenu, setArguments, setHasOptionsMenu, setInitialSavedState, setMenuVisibility, setRetainInstance, setTargetFragment, setUserVisibleHint, startActivity, startActivity, startActivityForResult, startActivityForResult, toString, unregisterForContextMenu |
STYLE_NORMAL
public static final int STYLE_NORMAL
- See Also:
- Constant Field Values
STYLE_NO_TITLE
public static final int STYLE_NO_TITLE
- See Also:
- Constant Field Values
STYLE_NO_FRAME
public static final int STYLE_NO_FRAME
- See Also:
- Constant Field Values
STYLE_NO_INPUT
public static final int STYLE_NO_INPUT
- See Also:
- Constant Field Values
DialogFragment
public DialogFragment()
setStyle
public void setStyle(int style,
int theme)
show
public void show(FragmentManager manager,
String tag)
show
public int show(FragmentTransaction transaction,
String tag)
dismiss
public void dismiss()
dismissAllowingStateLoss
public void dismissAllowingStateLoss()
getDialog
public Dialog getDialog()
getTheme
public int getTheme()
setCancelable
public void setCancelable(boolean cancelable)
isCancelable
public boolean isCancelable()
setShowsDialog
public void setShowsDialog(boolean showsDialog)
getShowsDialog
public boolean getShowsDialog()
onAttach
public void onAttach(Activity activity)
- Overrides:
onAttach in class Fragment
onDetach
public void onDetach()
- Overrides:
onDetach in class Fragment
onCreate
public void onCreate(Bundle savedInstanceState)
- Overrides:
onCreate in class Fragment
onCreateDialog
public Dialog onCreateDialog(Bundle savedInstanceState)
onCancel
public void onCancel(DialogInterface dialog)
- Specified by:
onCancel in interface DialogInterface.OnCancelListener
onDismiss
public void onDismiss(DialogInterface dialog)
- Specified by:
onDismiss in interface DialogInterface.OnDismissListener
onActivityCreated
public void onActivityCreated(Bundle savedInstanceState)
- Overrides:
onActivityCreated in class Fragment
onStart
public void onStart()
- Overrides:
onStart in class Fragment
onSaveInstanceState
public void onSaveInstanceState(Bundle outState)
- Overrides:
onSaveInstanceState in class Fragment
onStop
public void onStop()
- Overrides:
onStop in class Fragment
onDestroyView
public void onDestroyView()
- Overrides:
onDestroyView in class Fragment
dump
public void dump(String prefix,
FileDescriptor fd,
PrintWriter writer,
String[] args)
- Overrides:
dump in class Fragment
Copyright © 2008-2012. All Rights Reserved.