Example usage for Java android.support.v4.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_EXIT_MASK Bit mask that is set for all exit transitions. |
int | TRANSIT_UNSET Not set up for a transition. |
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(int containerViewId, Fragment fragment) Calls #add(int,Fragment,String) with a null tag. |
FragmentTransaction | add(int containerViewId, Fragment fragment, String tag) Add a fragment to the activity state. |
FragmentTransaction | addToBackStack(String name) Add this transaction to the back stack. |
FragmentTransaction | attach(Fragment fragment) Re-attach a fragment after it had previously been deatched 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(int containerViewId, Fragment fragment) Calls #replace(int,Fragment,String) with a null tag. |
FragmentTransaction | replace(int containerViewId, Fragment fragment, String tag) Replace an existing fragment that was added to a container. |
FragmentTransaction | setBreadCrumbShortTitle(int res) Set the short title to show as a bread crumb when this transaction is on the back stack. |
FragmentTransaction | setBreadCrumbShortTitle(CharSequence text) Like #setBreadCrumbShortTitle(int) but taking a raw string; this method is not recommended, as the string can not be changed later if the locale changes. |
FragmentTransaction | setBreadCrumbTitle(int res) Set the full title to show as a bread crumb when this transaction is on the back stack. |
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(int enter, int exit) Set specific animation resources to run for the fragments that are entering and exiting in this transaction. |
FragmentTransaction | setCustomAnimations(int enter, int exit, int popEnter, int popExit) Set specific animation resources to run for the fragments that are entering and exiting in this transaction. |
FragmentTransaction | setTransition(int transit) Select a standard transition animation for this transaction. |
FragmentTransaction | setTransitionStyle(int styleRes) Set a custom style resource that will be used for resolving transit animations. |
FragmentTransaction | show(Fragment fragment) Shows a previously hidden fragment. |