View.PivotX Property

Definition

The x location of the point around which the view is #setRotation(float) rotated and #setScaleX(float) scaled. -or- Sets the x location of the point around which the view is #setRotation(float) rotated and #setScaleX(float) scaled.

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

The x location of the pivot point.

Attributes

Remarks

Property getter documentation:

The x location of the point around which the view is #setRotation(float) rotated and #setScaleX(float) scaled.

Java documentation for android.view.View.getPivotX().

Property setter documentation:

Sets the x location of the point around which the view is #setRotation(float) rotated and #setScaleX(float) scaled. By default, the pivot point is centered on the object. Setting this property disables this behavior and causes the view to use only the explicitly set pivotX and pivotY values.

Java documentation for android.view.View.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