belongs to Maven artifact com.android.support:support-fragment:28.0.0-alpha1
FragmentTransaction
public
abstract
class
FragmentTransaction
extends Object
java.lang.Object | |
↳ | android.support.v4.app.FragmentTransaction |
Static library support version of the framework's FragmentTransaction
.
Used to write apps that run on platforms prior to Android 3.0. When running
on Android 3.0 or above, this implementation is still used; it does not try
to switch to the framework's implementation. See the framework SDK
documentation for a class overview.
Summary
Constants | |
---|---|
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_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. |
int |
TRANSIT_FRAGMENT_OPEN
Fragment is being added onto the stack |
int |
TRANSIT_NONE
No animation for transition. |
int |
TRANSIT_UNSET
Not set up for a transition. |
Public constructors | |
---|---|
FragmentTransaction()
|
Public methods | |
---|---|
abstract
FragmentTransaction
|
add(Fragment fragment, String tag)
Calls |
abstract
FragmentTransaction
|
add(int containerViewId, Fragment fragment, String tag)
Add a fragment to the activity state. |
abstract
FragmentTransaction
|
add(int containerViewId, Fragment fragment)
Calls |
abstract
FragmentTransaction
|
addSharedElement(View sharedElement, String name)
Used with custom Transitions to map a View from a removed or hidden Fragment to a View from a shown or added Fragment. |
abstract
FragmentTransaction
|
addToBackStack(String name)
Add this transaction to the back stack. |
abstract
FragmentTransaction
|
attach(Fragment fragment)
Re-attach a fragment after it had previously been detached from
the UI with |
abstract
int
|
commit()
Schedules a commit of this transaction. |
abstract
int
|
commitAllowingStateLoss()
Like |
abstract
void
|
commitNow()
Commits this transaction synchronously. |
abstract
void
|
commitNowAllowingStateLoss()
Like |
abstract
FragmentTransaction
|
|