Share via


RotateDrawable.PivotX Property

Definition

Sets the X position around which the drawable is rotated.

public virtual float PivotX { [Android.Runtime.Register("getPivotX", "()F", "GetGetPivotXHandler")] get; [Android.Runtime.Register("setPivotX", "(F)V", "GetSetPivotX_FHandler")] set; }
[<get: Android.Runtime.Register("getPivotX", "()F", "GetGetPivotXHandler")>]
[<set: Android.Runtime.Register("setPivotX", "(F)V", "GetSetPivotX_FHandler")>]
member this.PivotX : single with get, set

Property Value

X position around which to rotate

Attributes

Remarks

Property getter documentation:

Java documentation for android.graphics.drawable.RotateDrawable.getPivotX().

Property setter documentation:

Sets the X position around which the drawable is rotated.

If the X pivot is relative (as specified by #setPivotXRelative(boolean)), then the position represents a fraction of the drawable width. Otherwise, the position represents an absolute value in pixels.

Java documentation for android.graphics.drawable.RotateDrawable.setPivotX(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

See also