Example usage for Java android.app FragmentTransaction fields, constructors, methods, implement or subclass
The text is from its open source code.
int | TRANSIT_ENTER_MASK Bit mask that is set for all enter transitions. |
int | TRANSIT_NONE No animation for transition. |
int | TRANSIT_FRAGMENT_OPEN Fragment is being added onto the stack |
int | TRANSIT_FRAGMENT_CLOSE Fragment is being removed from the stack |
int | TRANSIT_FRAGMENT_FADE Fragment should simply fade in or out; that is, no strong navigation associated with it except that it is appearing or disappearing for some reason. |
FragmentTransaction | add(Fragment fragment, String tag) Calls #add(int,Fragment,String) with a 0 containerViewId. |
FragmentTransaction | add(@IdRes int containerViewId, Fragment fragment) Calls #add(int,Fragment,String) with a null tag. |
FragmentTransaction | add(@IdRes int containerViewId, Fragment fragment, String tag) Add a fragment to the activity state. |
FragmentTransaction | addToBackStack(@Nullable String name) Add this transaction to the back stack. |
FragmentTransaction | attach(Fragment fragment) Re-attach a fragment after it had previously been detached from the UI with #detach(Fragment) . |
int | commit() Schedules a commit of this transaction. |
int | commitAllowingStateLoss() Like #commit but allows the commit to be executed after an activity's state is saved. |
FragmentTransaction | detach(Fragment fragment) Detach the given fragment from the UI. |
FragmentTransaction | disallowAddToBackStack() Disallow calls to #addToBackStack(String) . |
FragmentTransaction | hide(Fragment fragment) Hides an existing fragment. |
boolean | isAddToBackStackAllowed() Returns true if this FragmentTransaction is allowed to be added to the back stack. |
boolean | isEmpty() |
FragmentTransaction | remove(Fragment fragment) Remove an existing fragment. |
FragmentTransaction | replace(@IdRes int containerViewId, Fragment fragment) Calls #replace(int,Fragment,String) with a null tag. |
FragmentTransaction | replace(@IdRes int containerViewId, Fragment fragment, String tag) Replace an existing fragment that was added to a container. |
FragmentTransaction | setBreadCrumbTitle(@StringRes int res) Set the full title to show as a bread crumb when this transaction is on the back stack, as used by FragmentBreadCrumbs . |
FragmentTransaction | setBreadCrumbTitle(CharSequence text) Like #setBreadCrumbTitle(int) but taking a raw string; this method is not recommended, as the string can not be changed later if the locale changes. |
FragmentTransaction | setCustomAnimations(@AnimatorRes int enter, @AnimatorRes int exit, @AnimatorRes int popEnter, @AnimatorRes int popExit) Set specific animation resources to run for the fragments that are entering and exiting in this transaction. |
FragmentTransaction | setCustomAnimations(@AnimatorRes int enter, @AnimatorRes int exit) Set specific animation resources to run for the fragments that are entering and exiting in this transaction. |
FragmentTransaction | setTransition(@Transit int transit) Select a standard transition animation for this transaction. |
FragmentTransaction | show(Fragment fragment) Shows a previously hidden fragment. |