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

The View that the new activity is animating from. This defines the coordinate space for <var>startX</var> and <var>startY</var>.

startX
Int32

The x starting location of the new activity, relative to <var>source</var>.

startY
Int32

The y starting location of the activity, relative to <var>source</var>.

width
Int32

The initial width of the new activity.

height
Int32

The initial height of the new activity.

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 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 android.content.Intent#setSourceBounds Intent.setSourceBounds, those bounds will be filled in for you based on the initial bounds passed in here.

Java documentation for android.app.ActivityOptions.makeScaleUpAnimation(android.view.View, int, 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