Udostępnij za pośrednictwem


RotateAnimation Constructors

Definition

Overloads

RotateAnimation(Context, IAttributeSet)

Constructor used when a RotateAnimation is loaded from a resource.

RotateAnimation(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

RotateAnimation(Single, Single)

Constructor to use when building a RotateAnimation from code.

RotateAnimation(Single, Single, Single, Single)

Constructor to use when building a RotateAnimation from code

RotateAnimation(Single, Single, Dimension, Single, Dimension, Single)

Constructor to use when building a RotateAnimation from code

RotateAnimation(Context, IAttributeSet)

Constructor used when a RotateAnimation is loaded from a resource.

[Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/util/AttributeSet;)V", "")]
public RotateAnimation (Android.Content.Context? context, Android.Util.IAttributeSet? attrs);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/util/AttributeSet;)V", "")>]
new Android.Views.Animations.RotateAnimation : Android.Content.Context * Android.Util.IAttributeSet -> Android.Views.Animations.RotateAnimation

Parameters

context
Context

Application context to use

attrs
IAttributeSet

Attribute set from which to read values

Attributes

Remarks

Constructor used when a RotateAnimation is loaded from a resource.

Java documentation for android.view.animation.RotateAnimation.RotateAnimation(android.content.Context, android.util.AttributeSet).

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

RotateAnimation(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

protected RotateAnimation (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Views.Animations.RotateAnimation : nativeint * Android.Runtime.JniHandleOwnership -> Android.Views.Animations.RotateAnimation

Parameters

javaReference
IntPtr

nativeint

A IntPtrcontaining a Java Native Interface (JNI) object reference.

transfer
JniHandleOwnership

A JniHandleOwnershipindicating how to handle javaReference

Remarks

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

RotateAnimation(Single, Single)

Constructor to use when building a RotateAnimation from code.

[Android.Runtime.Register(".ctor", "(FF)V", "")]
public RotateAnimation (float fromDegrees, float toDegrees);
[<Android.Runtime.Register(".ctor", "(FF)V", "")>]
new Android.Views.Animations.RotateAnimation : single * single -> Android.Views.Animations.RotateAnimation

Parameters

fromDegrees
Single

Rotation offset to apply at the start of the animation.

toDegrees
Single

Rotation offset to apply at the end of the animation.

Attributes

Remarks

Constructor to use when building a RotateAnimation from code. Default pivotX/pivotY point is (0,0).

Java documentation for android.view.animation.RotateAnimation.RotateAnimation(float, float).

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

RotateAnimation(Single, Single, Single, Single)

Constructor to use when building a RotateAnimation from code

[Android.Runtime.Register(".ctor", "(FFFF)V", "")]
public RotateAnimation (float fromDegrees, float toDegrees, float pivotX, float pivotY);
[<Android.Runtime.Register(".ctor", "(FFFF)V", "")>]
new Android.Views.Animations.RotateAnimation : single * single * single * single -> Android.Views.Animations.RotateAnimation

Parameters

fromDegrees
Single

Rotation offset to apply at the start of the animation.

toDegrees
Single

Rotation offset to apply at the end of the animation.

pivotX
Single

The X coordinate of the point about which the object is being rotated, specified as an absolute number where 0 is the left edge.

pivotY
Single

The Y coordinate of the point about which the object is being rotated, specified as an absolute number where 0 is the top edge.

Attributes

Remarks

Constructor to use when building a RotateAnimation from code

Java documentation for android.view.animation.RotateAnimation.RotateAnimation(float, float, float, float).

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

RotateAnimation(Single, Single, Dimension, Single, Dimension, Single)

Constructor to use when building a RotateAnimation from code

[Android.Runtime.Register(".ctor", "(FFIFIF)V", "")]
public RotateAnimation (float fromDegrees, float toDegrees, Android.Views.Animations.Dimension pivotXType, float pivotXValue, Android.Views.Animations.Dimension pivotYType, float pivotYValue);
[<Android.Runtime.Register(".ctor", "(FFIFIF)V", "")>]
new Android.Views.Animations.RotateAnimation : single * single * Android.Views.Animations.Dimension * single * Android.Views.Animations.Dimension * single -> Android.Views.Animations.RotateAnimation

Parameters

fromDegrees
Single

Rotation offset to apply at the start of the animation.

toDegrees
Single

Rotation offset to apply at the end of the animation.

pivotXType
Dimension

Specifies how pivotXValue should be interpreted. One of Animation.ABSOLUTE, Animation.RELATIVE_TO_SELF, or Animation.RELATIVE_TO_PARENT.

pivotXValue
Single

The X coordinate of the point about which the object is being rotated, specified as an absolute number where 0 is the left edge. This value can either be an absolute number if pivotXType is ABSOLUTE, or a percentage (where 1.0 is 100%) otherwise.

pivotYType
Dimension

Specifies how pivotYValue should be interpreted. One of Animation.ABSOLUTE, Animation.RELATIVE_TO_SELF, or Animation.RELATIVE_TO_PARENT.

pivotYValue
Single

The Y coordinate of the point about which the object is being rotated, specified as an absolute number where 0 is the top edge. This value can either be an absolute number if pivotYType is ABSOLUTE, or a percentage (where 1.0 is 100%) otherwise.

Attributes

Remarks

Constructor to use when building a RotateAnimation from code

Java documentation for android.view.animation.RotateAnimation.RotateAnimation(float, float, int, float, int, float).

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