Udostępnij za pośrednictwem


ImageView.AnimateTransform(Matrix) Method

Definition

Applies a temporary transformation Matrix to the view's drawable when it is drawn.

[Android.Runtime.Register("animateTransform", "(Landroid/graphics/Matrix;)V", "GetAnimateTransform_Landroid_graphics_Matrix_Handler", ApiSince=29)]
public virtual void AnimateTransform (Android.Graphics.Matrix? matrix);
[<Android.Runtime.Register("animateTransform", "(Landroid/graphics/Matrix;)V", "GetAnimateTransform_Landroid_graphics_Matrix_Handler", ApiSince=29)>]
abstract member AnimateTransform : Android.Graphics.Matrix -> unit
override this.AnimateTransform : Android.Graphics.Matrix -> unit

Parameters

matrix
Matrix

The transformation parameters in matrix form.

Attributes

Remarks

Applies a temporary transformation Matrix to the view's drawable when it is drawn. Allows custom scaling, translation, and perspective distortion during an animation.

This method is a lightweight analogue of ImageView#setImageMatrix(Matrix) to use only during animations as this matrix will be cleared after the next drawable update or view's bounds change.

Java documentation for android.widget.ImageView.animateTransform(android.graphics.Matrix).

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