added in version 22.1.0
belongs to Maven artifact com.android.support:support-fragment:28.0.0-alpha1

DialogFragment

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

java.lang.Object
   ↳ android.support.v4.app.Fragment
     ↳ android.support.v4.app.DialogFragment
Known Direct Subclasses
Known Indirect Subclasses


Static library support version of the framework's DialogFragment. Used to write apps that run on platforms prior to Android 3.0. When running on Android 3.0 or above, this implementation is still used; it does not try to switch to the framework's implementation. See the framework SDK documentation for a class overview.

Summary

Constants

int STYLE_NORMAL

Style for setStyle(int, int): a basic, normal dialog.

int STYLE_NO_FRAME

Style for setStyle(int, int): don't draw any frame at all; the view hierarchy returned by onCreateView(LayoutInflater, ViewGroup, Bundle) is entirely responsible for drawing the dialog.

int STYLE_NO_INPUT

Style for setStyle(int, int): like STYLE_NO_FRAME, but also disables all input to the dialog.

int STYLE_NO_TITLE

Style for setStyle(int, int): don't include a title area.

Public constructors

DialogFragment()

Public methods

void dismiss()

Dismiss the fragment and its dialog.

void