DialogFragment deprecated

Class of android.app · DialogFragment.java · Android's reference

public class DialogFragment extends Fragment implements DialogInterface.OnCancelListener, DialogInterface.OnDismissListener

DialogFragment ← Fragment

A platform fragment (deprecated) that shows a dialog while it is started.

Fields

public static final int STYLE_NORMAL = 0 source
public static final int STYLE_NO_TITLE = 1 source
public static final int STYLE_NO_FRAME = 2 source
public static final int STYLE_NO_INPUT = 3 source

Constructors

public DialogFragment() empty body source

Methods

public void setStyle(int style, int theme) source
public int getTheme() source
public void setCancelable(boolean cancelable) source
public boolean isCancelable() source
public void setShowsDialog(boolean showsDialog) source
public boolean getShowsDialog() source
public Dialog getDialog() source
public Dialog onCreateDialog(Bundle savedInstanceState) source
public void show(FragmentManager manager, String tag) source
public int show(FragmentTransaction transaction, String tag) source
public void dismiss() source
public void dismissAllowingStateLoss() source
public void onActivityCreated(Bundle savedInstanceState) source
public void onStart() source
public void onStop() source
public void onCreate(Bundle savedInstanceState) source
public void onDestroy() source
public void onDetach() source
public void onCancel(DialogInterface dialog) empty body source
public void onDismiss(DialogInterface dialog) source

The dialog went away by itself (a button, back): the fragment goes too.


Made from ScarletNX's Sail at 166ad3910f80. The framework is ScarletNX's (GPL-3.0-or-later); the parts that follow the Android Open Source Project's sources (Apache-2.0) say so in their files.