diff options
| author | Dianne Hackborn <hackbod@google.com> | 2010-08-12 16:20:42 -0700 |
|---|---|---|
| committer | Dianne Hackborn <hackbod@google.com> | 2010-08-12 17:23:48 -0700 |
| commit | b7a2e4772220c4b41df1260cedaf8912f4b07547 (patch) | |
| tree | 294dd03b701c4d6e1950e98b94450d4d51dcddec /core/java/android/app/DialogFragment.java | |
| parent | 67dfaec8cf5c5cda9a3e2bd1c9d514f9cbfd0e73 (diff) | |
Fragment and PreferenceFragment and FragmentManager, oh my!
- Introduce FragmentManager public API, for all Fragment management
needs. Will in the future allow the removal of the (growing number
of) fragment APIs on Activity.
- Fragment now has a concept of arguments. This can be supplied
immediately after creation, and are retained across instances.
- PreferenceActivity now has an API to have it update its headers (note
not tested). Headers now have arguments. Keys for controlling
when PreferenceActivity shows at launch have been added to the SDK.
- Fixes to back stack handling and state saving/restoring.
Change-Id: Ib9d07ae2beb296c4eb3a4d9e1b3b59544675e819
Diffstat (limited to 'core/java/android/app/DialogFragment.java')
| -rw-r--r-- | core/java/android/app/DialogFragment.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/core/java/android/app/DialogFragment.java b/core/java/android/app/DialogFragment.java index 391f67282329..5bb4c4246a9f 100644 --- a/core/java/android/app/DialogFragment.java +++ b/core/java/android/app/DialogFragment.java @@ -84,11 +84,12 @@ public class DialogFragment extends Fragment } /** - * Constructor to customize the basic appearance and behavior of the + * Call to customize the basic appearance and behavior of the * fragment's dialog. This can be used for some common dialog behaviors, * taking care of selecting flags, theme, and other options for you. The * same effect can be achieve by manually setting Dialog and Window - * attributes yourself. + * attributes yourself. Calling this after the fragment's Dialog is + * created will have no effect. * * @param style Selects a standard style: may be {@link #STYLE_NORMAL}, * {@link #STYLE_NO_TITLE}, {@link #STYLE_NO_FRAME}, or @@ -96,7 +97,7 @@ public class DialogFragment extends Fragment * @param theme Optional custom theme. If 0, an appropriate theme (based * on the style) will be selected for you. */ - public DialogFragment(int style, int theme) { + public void setStyle(int style, int theme) { mStyle = style; if (mStyle == STYLE_NO_FRAME || mStyle == STYLE_NO_INPUT) { mTheme = android.R.style.Theme_Dialog_NoFrame; |
