Android.App.Activity.OverridePendingTransition Method
Call immediately after one of the flavors of Activity.startActivity(android.content.Intent) or Activity.Finish to specify an explicit transition animation to perform next.

Syntax

[Android.Runtime.Register("overridePendingTransition", "(II)V", "GetOverridePendingTransition_IIHandler")]
public virtual void OverridePendingTransition (int enterAnim, int exitAnim)

Parameters

enterAnim
A resource ID of the animation resource to use for the incoming activity. Use 0 for no animation.
exitAnim
A resource ID of the animation resource to use for the outgoing activity. Use 0 for no animation.

Remarks

Call immediately after one of the flavors of Activity.startActivity(android.content.Intent) or Activity.Finish to specify an explicit transition animation to perform next.

As of NoType:android/os/Build$VERSION_CODES;Href=../../../reference/android/os/Build.VERSION_CODES.html#JELLY_BEAN an alternative to using this with starting activities is to supply the desired animation information through a Android.App.ActivityOptions bundle to {@link #startActivity(Intent, Bundle) or a related function. This allows you to specify a custom animation even when starting an activity from outside the context of the current top activity.

[Android Documentation]

Requirements

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