Lines Matching refs:fragment
19 import android.app.Fragment;
116 * fragment, the Prefs1FragmentInner implemented here. This allows the user
118 * fragment off the stack to return to the previous preferences.
134 * string to specify which fragment should be initially displayed.
141 * to that fragment when it is instantiated during the initial creation
149 * that fragment.
156 * that fragment.
165 * the activity to display a specific fragment that the user has navigated
186 // --- State for new mode when showing a list of headers + prefs fragment
232 if (header != null && header.fragment != null) {
370 * Full class name of the fragment to display when this header is
374 public String fragment;
377 * Optional arguments to supply to the fragment when it is
462 dest.writeString(fragment);
484 fragment = in.readString();
536 // If we are just showing a fragment, we want to run in
537 // new fragment mode, but don't need to compute and show
553 // the currently selected preference fragment.
570 // Single pane, showing just a prefs fragment.
670 * and a preference fragment.
700 * implementation simply returns the fragment of the first header. Note
702 * your header list -- whatever its fragment is will simply be used to
708 if (h.fragment != null) {
712 throw new IllegalStateException("Must have at least one header with a fragment");
728 * will cause the activity to run in its modern fragment mode. Note
730 * activity has been asked to display a particular fragment without
834 header.fragment = sa.getString(
985 * {@link #startWithFragment(String, Bundle, Fragment, int, int, int)}
992 if (header.fragment != null) {
1000 startWithFragment(header.fragment, header.fragmentArguments, null, 0,
1011 * Called by {@link #startWithFragment(String, Bundle, Fragment, int, int, int)} when
1013 * the selected fragment. The default implementation constructs an Intent
1015 * display the fragment.
1017 * @param fragmentName The name of the fragment to display.
1018 * @param args Optional arguments to supply to the fragment.
1022 * fragment.
1037 * Like {@link #startWithFragment(String, Bundle, Fragment, int, int, int)}
1041 Fragment resultTo, int resultRequestCode) {
1047 * preference fragment. When launched in this mode, the header list
1048 * will be hidden and the given preference fragment will be instantiated
1051 * @param fragmentName The name of the fragment to display.
1052 * @param args Optional arguments to supply to the fragment.
1053 * @param resultTo Option fragment that should receive the result of
1063 Fragment resultTo, int resultRequestCode, int titleRes, int shortTitleRes) {
1107 * This prepends a title to the fragment breadcrumbs and attaches a listener to any clicks
1144 Fragment f = Fragment.instantiate(this, fragmentName, args);
1152 * When in two-pane mode, switch the fragment pane to show the given
1153 * preference fragment.
1155 * @param fragmentName The name of the fragment to display.
1156 * @param args Optional arguments to supply to the fragment.
1164 * When in two-pane mode, switch to the fragment pane to show the given
1165 * preference fragment.
1176 if (header.fragment == null) {
1177 throw new IllegalStateException("can't switch to header that has no fragment");
1180 switchToHeaderInner(header.fragment, header.fragmentArguments, direction);
1195 if (cur.fragment != null) {
1196 if (cur.fragment.equals(oh.fragment)) {
1231 * Start a new fragment.
1233 * @param fragment The fragment to start
1234 * @param push If true, the current fragment will be pushed onto the back stack. If false,
1235 * the current fragment will be replaced.
1237 public void startPreferenceFragment(Fragment fragment, boolean push) {
1239 transaction.replace(com.android.internal.R.id.prefs, fragment);
1250 * Start a new fragment containing a preference panel. If the prefences
1251 * are being displayed in multi-pane mode, the given fragment class will
1254 * fragment.
1256 * @param fragmentClass Full name of the class implementing the fragment.
1257 * @param args Any desired arguments to supply to the fragment.
1259 * fragment.
1260 * @param titleText Optional text of the title of this fragment.
1261 * @param resultTo Optional fragment that result data should be sent to.
1264 * {@link #finishPreferencePanel(Fragment, int, Intent)} when done.
1269 CharSequence titleText, Fragment resultTo, int resultRequestCode) {
1273 Fragment f = Fragment.instantiate(this, fragmentClass, args);
1291 * Called by a preference panel fragment to finish itself.
1293 * @param caller The fragment that is asking to be finished.
1295 * launching fragment.
1297 * launching fragment.
1299 public void finishPreferencePanel(Fragment caller, int resultCode, Intent resultData) {
1348 * @deprecated This function is not relevant for a modern fragment-based
1371 * @deprecated This function is not relevant for a modern fragment-based
1394 * @deprecated This function is not relevant for a modern fragment-based
1410 * @deprecated This function is not relevant for a modern fragment-based
1426 * @deprecated This function is not relevant for a modern fragment-based
1440 * @deprecated This function is not relevant for a modern fragment-based
1455 * @deprecated This function is not relevant for a modern fragment-based