Android Guides | Samples

Android.App.FragmentTransaction Class

API for performing a set of Fragment operations.

See Also: FragmentTransaction

Syntax

[Android.Runtime.Register("android/app/FragmentTransaction", DoNotGenerateAcw=true)]
public abstract class FragmentTransaction : Object

Remarks

API for performing a set of Fragment operations.

Developer Guides

For more information about using fragments, read the Fragments developer guide.

[Android Documentation]

Requirements

Namespace: Android.App
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 11

The members of Android.App.FragmentTransaction are listed below.

See Also: Object

Public Constructors

Protected Constructors

A constructor used when creating managed representations of JNI objects; called by the runtime.

Public Properties

[read-only]
abstract
IsAddToBackStackAllowedBoolean. Returns true if this FragmentTransaction is allowed to be added to the back stack.
[read-only]
abstract
IsEmptyBoolean.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

abstract
Add(Fragment, String) : FragmentTransaction
Calls FragmentTransaction.Add(Int32,Fragment,Fragment) with a 0 containerViewId.
abstract
Add(Int32, Fragment) : FragmentTransaction
Calls FragmentTransaction.Add(Int32,Fragment,Fragment) with a null tag.
abstract
Add(Int32, Fragment, String) : FragmentTransaction
Add a fragment to the activity state.
abstract
AddSharedElement(View, String) : FragmentTransaction
Used with to map a View from a removed or hidden Fragment to a View from a shown or added Fragment.
abstract
AddToBackStack(String) : FragmentTransaction
Add this transaction to the back stack.
abstract
Attach(Fragment) : FragmentTransaction
Re-attach a fragment after it had previously been detached from the UI with FragmentTransaction.Detach(Fragment).
abstract
Commit() : Int32
Schedules a commit of this transaction.
abstract
CommitAllowingStateLoss() : Int32
Like FragmentTransaction.Commit but allows the commit to be executed after an activity's state is saved.
abstract
Detach(Fragment) : FragmentTransaction
Detach the given fragment from the UI.
abstract
DisallowAddToBackStack() : FragmentTransaction
Disallow calls to FragmentTransaction.AddToBackStack(String).
abstract
Hide(Fragment) : FragmentTransaction
Hides an existing fragment.
abstract
Remove(Fragment) : FragmentTransaction
Remove an existing fragment.
abstract
Replace(Int32, Fragment) : FragmentTransaction
Calls FragmentTransaction.Replace(Int32,Fragment,Fragment) with a null tag.
abstract
Replace(Int32, Fragment, String) : FragmentTransaction
Replace an existing fragment that was added to a container.
abstract
SetBreadCrumbShortTitle(ICharSequence) : FragmentTransaction
Like FragmentTransaction.SetBreadCrumbShortTitle(Int32) but taking a raw string; this method is not recommended, as the string can not be changed later if the locale changes.
abstract
SetBreadCrumbShortTitle(Int32) : FragmentTransaction
Set the short title to show as a bread crumb when this transaction is on the back stack, as used by FragmentBreadCrumbs.
SetBreadCrumbShortTitle(String) : FragmentTransaction
abstract
SetBreadCrumbTitle(ICharSequence) : FragmentTransaction
Like FragmentTransaction.SetBreadCrumbTitle(Int32) but taking a raw string; this method is not recommended, as the string can not be changed later if the locale changes.
abstract
SetBreadCrumbTitle(Int32) : FragmentTransaction
Set the full title to show as a bread crumb when this transaction is on the back stack, as used by FragmentBreadCrumbs.
SetBreadCrumbTitle(String) : FragmentTransaction
abstract
SetCustomAnimations(Int32, Int32) : FragmentTransaction
Set specific animation resources to run for the fragments that are entering and exiting in this transaction.
abstract
SetCustomAnimations(Int32, Int32, Int32, Int32) : FragmentTransaction
Set specific animation resources to run for the fragments that are entering and exiting in this transaction.
abstract
SetTransition(FragmentTransit) : FragmentTransaction
Select a standard transition animation for this transaction.
abstract
SetTransitionStyle(Int32) : FragmentTransaction
Set a custom style resource that will be used for resolving transit animations.
abstract
Show(Fragment) : FragmentTransaction
Shows a previously hidden fragment.