Example usage for Java android.support.v4.app DialogFragment fields, constructors, methods, implement or subclass
The text is from its open source code.
int | STYLE_NORMAL Style for #setStyle(int,int) : a basic, normal dialog. |
int | STYLE_NO_TITLE Style for #setStyle(int,int) : don't include a title area. |
int | STYLE_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. |
void | cancel() Cancels the dialog, invoking the OnCancelListener . |
void | dismiss() Dismiss the fragment and its dialog. |
Activity | getActivity() Return the Activity this fragment is currently associated with. |
Bundle | getArguments() Return the arguments supplied to #setArguments , if any. |
Class> | getClass() Returns the runtime class of this Object . |
Dialog | getDialog() |
FragmentManager | getFragmentManager() Return the FragmentManager for interacting with fragments associated with this fragment's activity. |
int | getId() Return the identifier this fragment is known by. |
boolean | getShowsDialog() Return the current value of #setShowsDialog(boolean) . |
String | getTag() Get the tag name of the fragment, if specified. |
Fragment | getTargetFragment() Return the target fragment set by #setTargetFragment . |
int | getTargetRequestCode() Return the target request code set by #setTargetFragment . |
CharSequence | getText(@StringRes int resId) Return a localized, styled CharSequence from the application's package's default string table. |
boolean | isResumed() Return true if the fragment is in the resumed state. |
boolean | isVisible() Return true if the fragment is currently visible to the user. |
void | setArguments(Bundle args) Supply the construction arguments for this fragment. |
void | setCancelable(boolean cancelable) Control whether the shown Dialog is cancelable. |
void | setRetainInstance(boolean retain) Control whether a fragment instance is retained across Activity re-creation (such as from a configuration change). |
void | setStyle(int style, int theme) Call to customize the basic appearance and behavior of the fragment's dialog. |
void | setTargetFragment(Fragment fragment, int requestCode) Optional target for this fragment. |
void | show(FragmentManager manager, String tag) Display the dialog, adding the fragment to the given FragmentManager. |
int | show(FragmentTransaction transaction, String tag) Display the dialog, adding the fragment using an existing transaction and then committing the transaction. |