Share via


ActivityOptions.MakeThumbnailScaleUpAnimation Method

Definition

Create an ActivityOptions specifying an animation where a thumbnail is scaled from a given position to the new activity window that is being started.

[Android.Runtime.Register("makeThumbnailScaleUpAnimation", "(Landroid/view/View;Landroid/graphics/Bitmap;II)Landroid/app/ActivityOptions;", "")]
public static Android.App.ActivityOptions? MakeThumbnailScaleUpAnimation (Android.Views.View? source, Android.Graphics.Bitmap? thumbnail, int startX, int startY);
[<Android.Runtime.Register("makeThumbnailScaleUpAnimation", "(Landroid/view/View;Landroid/graphics/Bitmap;II)Landroid/app/ActivityOptions;", "")>]
static member MakeThumbnailScaleUpAnimation : Android.Views.View * Android.Graphics.Bitmap * int * int -> Android.App.ActivityOptions

Parameters

source
View

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

thumbnail
Bitmap

The bitmap that will be shown as the initial thumbnail of the animation.

startX
Int32

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

startY
Int32

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

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 a thumbnail is scaled from a given position to the new activity window that is being started.

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 thumbnail location and size provided here.

Java documentation for android.app.ActivityOptions.makeThumbnailScaleUpAnimation(android.view.View, android.graphics.Bitmap, 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