public class DialogFragment extends Fragment implements android.content.DialogInterface.OnCancelListener, android.content.DialogInterface.OnDismissListener
| Modifier and Type | Class and Description |
|---|---|
static class |
DialogFragment.DialogTransaction |
static class |
DialogFragment.DialogType |
Fragment.InstantiationException, Fragment.SavedStateIAddonAttacher.AddonCallback<V>, IAddonAttacher.AttachException| Modifier and Type | Field and Description |
|---|---|
static int |
STYLE_NO_FRAME |
static int |
STYLE_NO_INPUT |
static int |
STYLE_NO_TITLE |
static int |
STYLE_NORMAL |
| Constructor and Description |
|---|
DialogFragment() |
| Modifier and Type | Method and Description |
|---|---|
void |
dismiss() |
void |
dismissAllowingStateLoss() |
static <T extends DialogFragment> |
findInstance(Activity activity,
java.lang.Class<T> clazz) |
static <T extends DialogFragment> |
findInstance(Activity activity,
java.lang.Class<T> clazz,
boolean makeIfNeed) |
static <T extends DialogFragment> |
findInstance(FragmentManager fm,
java.lang.Class<T> clazz,
boolean makeIfNeed) |
Dialog |
getDialog() |
DialogFragment.DialogType |
getDialogType() |
LayoutInflater |
getLayoutInflater(android.os.Bundle savedInstanceState)
Deprecated.
|
boolean |
getShowsDialog() |
int |
getTheme() |
boolean |
isCancelable() |
void |
onActivityCreated(android.os.Bundle savedInstanceState) |
void |
onAttach(Activity activity) |
void |
onCancel(android.content.DialogInterface dialog) |
void |
onCreate(android.os.Bundle savedInstanceState) |
Dialog |
onCreateDialog(android.os.Bundle savedInstanceState) |
void |
onDestroyView() |
void |
onDetach() |
void |
onDismiss(android.content.DialogInterface dialog) |
void |
onSaveInstanceState(android.os.Bundle outState) |
void |
onStart() |
void |
onStop() |
void |
setCancelable(boolean cancelable) |
void |
setDialogType(DialogFragment.DialogType type) |
void |
setShowsDialog(boolean showsDialog) |
void |
setStyle(int style,
int theme) |
void |
setTitle(java.lang.CharSequence title) |
void |
setTitle(int resId) |
DialogFragment.DialogTransaction |
show() |
DialogFragment.DialogTransaction |
show(Activity activity) |
DialogFragment.DialogTransaction |
show(FragmentManager fm) |
DialogFragment.DialogTransaction |
show(FragmentManager fm,
FragmentTransaction ft) |
int |
show(FragmentManager manager,
java.lang.String tag)
Deprecated.
|
DialogFragment.DialogTransaction |
show(FragmentTransaction ft) |
int |
show(FragmentTransaction transaction,
java.lang.String tag)
Deprecated.
|
addon, addon, addon, getLayoutInflater, instantiate, instantiate, instantiate, instantiate, isAddonAttached, lockAttaching, obtainAddonsList, onViewCreated, performAddonAction, startActionModedontSaveMe, getContainerId, getContextMenuListener, getDefaultSharedPreferences, getDefaultSharedPreferences, getMenuInflater, getSharedPreferences, getSharedPreferences, getSupportActionBar, getSupportActionBarContext, getSupportActivity, getSupportApplication, getSupportFragmentManager, getSystemService, isDetachChildFragments, onAttach, onContextItemSelected, onContextItemSelected, onContextMenuClosed, onCreateContextMenu, onCreateContextMenu, onCreateOptionsMenu, onCreateOptionsMenu, onCreateView, onCreateView, onInflate, onInflate, onOptionsItemSelected, onOptionsItemSelected, onPrepareOptionsMenu, onPrepareOptionsMenu, onViewCreated, openContextMenu, registerForContextMenu, setDetachChildFragments, unregisterForContextMenudump, equals, getActivity, getArguments, getChildFragmentManager, getFragmentManager, getId, getLoaderManager, getParentFragment, getResources, getRetainInstance, getString, getString, getTag, getTargetFragment, getTargetRequestCode, getText, getUserVisibleHint, getView, hashCode, isAdded, isDetached, isHidden, isInLayout, isRemoving, isResumed, isVisible, onActivityResult, onConfigurationChanged, onCreateAnimation, onDestroy, onDestroyOptionsMenu, onHiddenChanged, onLowMemory, onOptionsMenuClosed, onPause, onResume, onViewStateRestored, setArguments, setHasOptionsMenu, setInitialSavedState, setMenuVisibility, setRetainInstance, setTargetFragment, setUserVisibleHint, startActivity, startActivityForResult, toStringpublic static final int STYLE_NO_FRAME
public static final int STYLE_NO_INPUT
public static final int STYLE_NO_TITLE
public static final int STYLE_NORMAL
public static final <T extends DialogFragment> T findInstance(Activity activity, java.lang.Class<T> clazz)
public static final <T extends DialogFragment> T findInstance(Activity activity, java.lang.Class<T> clazz, boolean makeIfNeed)
public static final <T extends DialogFragment> T findInstance(FragmentManager fm, java.lang.Class<T> clazz, boolean makeIfNeed)
public void dismiss()
public void dismissAllowingStateLoss()
public Dialog getDialog()
public DialogFragment.DialogType getDialogType()
@Deprecated public LayoutInflater getLayoutInflater(android.os.Bundle savedInstanceState)
getLayoutInflater in interface IHoloFragmentgetLayoutInflater in class _HoloFragmentpublic boolean getShowsDialog()
public int getTheme()
public boolean isCancelable()
public void onActivityCreated(android.os.Bundle savedInstanceState)
onActivityCreated in class Fragmentpublic void onCancel(android.content.DialogInterface dialog)
onCancel in interface android.content.DialogInterface.OnCancelListenerpublic void onCreate(android.os.Bundle savedInstanceState)
public Dialog onCreateDialog(android.os.Bundle savedInstanceState)
public void onDestroyView()
onDestroyView in class _HoloFragmentpublic void onDismiss(android.content.DialogInterface dialog)
onDismiss in interface android.content.DialogInterface.OnDismissListenerpublic void onSaveInstanceState(android.os.Bundle outState)
onSaveInstanceState in class Fragmentpublic void setCancelable(boolean cancelable)
public void setDialogType(DialogFragment.DialogType type)
public void setShowsDialog(boolean showsDialog)
public void setStyle(int style,
int theme)
public void setTitle(java.lang.CharSequence title)
public void setTitle(int resId)
public DialogFragment.DialogTransaction show()
public DialogFragment.DialogTransaction show(Activity activity)
public DialogFragment.DialogTransaction show(FragmentManager fm)
public DialogFragment.DialogTransaction show(FragmentManager fm, FragmentTransaction ft)
@Deprecated public int show(FragmentManager manager, java.lang.String tag)
public DialogFragment.DialogTransaction show(FragmentTransaction ft)
@Deprecated public int show(FragmentTransaction transaction, java.lang.String tag)
Copyright © 2012-2013. All Rights Reserved.