ActivityOptions.MakeScaleUpAnimation(View, Int32, Int32, Int32, Int32) Method

Definition

Create an ActivityOptions specifying an animation where the new activity is scaled from a small originating area of the screen to its final full representation.

[Android.Runtime.Register("makeScaleUpAnimation", "(Landroid/view/View;IIII)Landroid/app/ActivityOptions;", "")]
public static Android.App.ActivityOptions? MakeScaleUpAnimation(Android.Views.View? source, int startX, int startY, int width, int height);
[<Android.Runtime.Register("makeScaleUpAnimation", "(Landroid/view/View;IIII)Landroid/app/ActivityOptions;", "")>]
static member MakeScaleUpAnimation : Android.Views.View * int * int * int * int -> Android.App.ActivityOptions

Parameters

source
View

View: The View that the new activity is animating from. This defines the coordinate space for startX and startY.

startX
Int32

int: The x starting location of the new activity, relative to source.

startY
Int32

int: The y starting location of the activity, relative to source.

width
Int32

int: The initial width of the new activity.

height
Int32

int: The initial height of the new activity.

Returns

Attributes

Remarks

Create an ActivityOptions specifying an animation where the new activity is scaled from a small originating area of the screen to its final full representation. If the Intent this is being used with has not set its Intent.setSourceBounds, those bounds will be filled in for you based on the initial bounds passed in here.

Android reference for android.app.ActivityOptions.makeScaleUpAnimation.

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