Lines Matching refs:fragment

16     public abstract FragmentTransaction add(Fragment fragment, String tag);
21 public abstract FragmentTransaction add(int containerViewId, Fragment fragment);
24 * Add a fragment to the activity state. This fragment may optionally
28 * @param containerViewId Optional identifier of the container this fragment is
30 * @param fragment The fragment to be added. This fragment must not already
32 * @param tag Optional tag name for the fragment, to later retrieve the
33 * fragment with {@link FragmentManager#findFragmentByTag(String)
38 public abstract FragmentTransaction add(int containerViewId, Fragment fragment, String tag);
43 public abstract FragmentTransaction replace(int containerViewId, Fragment fragment);
46 * Replace an existing fragment that was added to a container. This is
52 * @param containerViewId Identifier of the container whose fragment(s) are
54 * @param fragment The new fragment to place in the container.
55 * @param tag Optional tag name for the fragment, to later retrieve the
56 * fragment with {@link FragmentManager#findFragmentByTag(String)
61 public abstract FragmentTransaction replace(int containerViewId, Fragment fragment, String tag);
64 * Remove an existing fragment. If it was added to a container, its view
67 * @param fragment The fragment to be removed.
71 public abstract FragmentTransaction remove(Fragment fragment);
74 * Hides an existing fragment. This is only relevant for fragments whose
78 * @param fragment The fragment to be hidden.
82 public abstract FragmentTransaction hide(Fragment fragment);
85 * Shows a previously hidden fragment. This is only relevant for fragments whose
89 * @param fragment The fragment to be shown.
93 public abstract FragmentTransaction show(Fragment fragment);
96 * Detach the given fragment from the UI. This is the same state as
97 * when it is put on the back stack: the fragment is removed from
99 * fragment manager. When going into this state its view hierarchy
102 * @param fragment The fragment to be detached.
106 public abstract FragmentTransaction detach(Fragment fragment);
109 * Re-attach a fragment after it had previously been deatched from
114 * @param fragment The fragment to be attached.
118 public abstract FragmentTransaction attach(Fragment fragment);