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

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

Introduction

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

The text is from its open source code.

Subclass

android.support.v4.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

voidcancel()
Cancels the dialog, invoking the OnCancelListener .
voiddismiss()
Dismiss the fragment and its dialog.
ActivitygetActivity()
Return the Activity this fragment is currently associated with.
BundlegetArguments()
Return the arguments supplied to #setArguments , if any.
ClassgetClass()
Returns the runtime class of this Object .
DialoggetDialog()
FragmentManagergetFragmentManager()
Return the FragmentManager for interacting with fragments associated with this fragment's activity.
intgetId()
Return the identifier this fragment is known by.
booleangetShowsDialog()
Return the current value of #setShowsDialog(boolean) .
StringgetTag()
Get the tag name of the fragment, if specified.
FragmentgetTargetFragment()
Return the target fragment set by #setTargetFragment .
intgetTargetRequestCode()
Return the target request code set by #setTargetFragment .
CharSequencegetText(@StringRes int resId)
Return a localized, styled CharSequence from the application's package's default string table.
booleanisResumed()
Return true if the fragment is in the resumed state.
booleanisVisible()
Return true if the fragment is currently visible to the user.
voidsetArguments(Bundle args)
Supply the construction arguments for this fragment.
voidsetCancelable(boolean cancelable)
Control whether the shown Dialog is cancelable.
voidsetRetainInstance(boolean retain)
Control whether a fragment instance is retained across Activity re-creation (such as from a configuration change).
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.