Share via


ActivityOptions.MakeCustomAnimation Method

Definition

Overloads

MakeCustomAnimation(Context, Int32, Int32)

Create an ActivityOptions specifying a custom animation to run when the activity is displayed.

MakeCustomAnimation(Context, Int32, Int32, Int32)

Create an ActivityOptions specifying a custom animation to run when the activity is displayed.

MakeCustomAnimation(Context, Int32, Int32)

Create an ActivityOptions specifying a custom animation to run when the activity is displayed.

[Android.Runtime.Register("makeCustomAnimation", "(Landroid/content/Context;II)Landroid/app/ActivityOptions;", "")]
public static Android.App.ActivityOptions? MakeCustomAnimation (Android.Content.Context? context, int enterResId, int exitResId);
[<Android.Runtime.Register("makeCustomAnimation", "(Landroid/content/Context;II)Landroid/app/ActivityOptions;", "")>]
static member MakeCustomAnimation : Android.Content.Context * int * int -> Android.App.ActivityOptions

Parameters

context
Context

Who is defining this. This is the application that the animation resources will be loaded from.

enterResId
Int32

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

exitResId
Int32

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

Returns

Returns a new ActivityOptions object that you can use to supply these options as the options Bundle when starting an activity.

Attributes

Remarks

Create an ActivityOptions specifying a custom animation to run when the activity is displayed.

Java documentation for android.app.ActivityOptions.makeCustomAnimation(android.content.Context, int, int).

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

MakeCustomAnimation(Context, Int32, Int32, Int32)

Create an ActivityOptions specifying a custom animation to run when the activity is displayed.

[Android.Runtime.Register("makeCustomAnimation", "(Landroid/content/Context;III)Landroid/app/ActivityOptions;", "", ApiSince=33)]
public static Android.App.ActivityOptions MakeCustomAnimation (Android.Content.Context context, int enterResId, int exitResId, int backgroundColor);
[<Android.Runtime.Register("makeCustomAnimation", "(Landroid/content/Context;III)Landroid/app/ActivityOptions;", "", ApiSince=33)>]
static member MakeCustomAnimation : Android.Content.Context * int * int * int -> Android.App.ActivityOptions

Parameters

context
Context

Who is defining this. This is the application that the animation resources will be loaded from.

enterResId
Int32

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

exitResId
Int32

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

backgroundColor
Int32

The background color to use for the background during the animation if the animation requires a background. Set to 0 to not override the default color.

Returns

Returns a new ActivityOptions object that you can use to supply these options as the options Bundle when starting an activity.

Attributes

Remarks

Create an ActivityOptions specifying a custom animation to run when the activity is displayed.

Java documentation for android.app.ActivityOptions.makeCustomAnimation(android.content.Context, int, int, int).

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