Java android.app DialogFragment fields, constructors, methods, implement or subclass

Example usage for Java android.app DialogFragment fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for android.app DialogFragment.

The text is from its open source code.

Subclass

android.app.DialogFragment has subclasses.
Click this link to see all its subclasses.

Field

intSTYLE_NORMAL
Style for #setStyle(int,int) : a basic, normal dialog.
intSTYLE_NO_TITLE
Style for #setStyle(int,int) : don't include a title area.
intSTYLE_NO_FRAME
Style for #setStyle(int,int) : don't draw any frame at all; the view hierarchy returned by #onCreateView is entirely responsible for drawing the dialog.

Constructor

Method

voiddismiss()
Dismiss the fragment and its dialog.
voiddismissAllowingStateLoss()
Version of #dismiss() that uses FragmentTransaction#commitAllowingStateLoss() FragmentTransaction.commitAllowingStateLoss() .
BundlegetArguments()
Return the arguments supplied to #setArguments , if any.
DialoggetDialog()
intgetTheme()
booleanisAdded()
Return true if the fragment is currently added to its activity.
booleanisVisible()
Return true if the fragment is currently visible to the user.
voidonActivityResult(int requestCode, int resultCode, Intent data)
Receive the result from a previous call to #startActivityForResult(Intent,int) .
voidsetArguments(Bundle args)
Supply the construction arguments for this fragment.
voidsetCancelable(boolean cancelable)
Control whether the shown Dialog is cancelable.
voidsetShowsDialog(boolean showsDialog)
Controls whether this fragment should be shown in a dialog.
voidsetStyle(int style, int theme)
Call to customize the basic appearance and behavior of the fragment's dialog.
voidsetTargetFragment(Fragment fragment, int requestCode)
Optional target for this fragment.
voidshow(FragmentManager manager, String tag)
Display the dialog, adding the fragment to the given FragmentManager.
intshow(FragmentTransaction transaction, String tag)
Display the dialog, adding the fragment using an existing transaction and then committing the transaction.