Language

FragmentTransaction.SetTransition(FragmentTransit) Method

Definition

Select a standard transition animation for this transaction.

[Android.Runtime.Register("setTransition", "(I)Landroid/app/FragmentTransaction;", "GetSetTransition_IHandler")]
public abstract Android.App.FragmentTransaction? SetTransition(Android.App.FragmentTransit transit);
[<Android.Runtime.Register("setTransition", "(I)Landroid/app/FragmentTransaction;", "GetSetTransition_IHandler")>]
abstract member SetTransition : Android.App.FragmentTransit -> Android.App.FragmentTransaction

Parameters

transit
FragmentTransit

A FragmentTransit value that selects the transition.

Returns

The same FragmentTransaction instance, allowing additional transaction operations to be chained.

Attributes

Remarks

Select a standard transition animation for this transaction. It can be None, FragmentOpen, FragmentClose, or FragmentFade.

Android reference for android.app.FragmentTransaction.setTransition.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to