Condividi tramite


Animation.Initialize(Int32, Int32, Int32, Int32) Method

Definition

Initialize this animation with the dimensions of the object being animated as well as the objects parents.

[Android.Runtime.Register("initialize", "(IIII)V", "GetInitialize_IIIIHandler")]
public virtual void Initialize (int width, int height, int parentWidth, int parentHeight);
[<Android.Runtime.Register("initialize", "(IIII)V", "GetInitialize_IIIIHandler")>]
abstract member Initialize : int * int * int * int -> unit
override this.Initialize : int * int * int * int -> unit

Parameters

width
Int32

Width of the object being animated

height
Int32

Height of the object being animated

parentWidth
Int32

Width of the animated object's parent

parentHeight
Int32

Height of the animated object's parent

Attributes

Remarks

Initialize this animation with the dimensions of the object being animated as well as the objects parents. (This is to support animation sizes being specified relative to these dimensions.)

Objects that interpret Animations should call this method when the sizes of the object being animated and its parent are known, and before calling #getTransformation.

Java documentation for android.view.animation.Animation.initialize(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