Share via


RenderNode.ResetPivot Method

Definition

Clears any pivot previously set by a call to #setPivotX(float) or #setPivotY(float).

[Android.Runtime.Register("resetPivot", "()Z", "", ApiSince=29)]
public bool ResetPivot ();
[<Android.Runtime.Register("resetPivot", "()Z", "", ApiSince=29)>]
member this.ResetPivot : unit -> bool

Returns

True if the value changed, false if the new value was the same as the previous value.

Attributes

Remarks

Clears any pivot previously set by a call to #setPivotX(float) or #setPivotY(float). After calling this #isPivotExplicitlySet() will be false and the pivot used for rotation will return to default of being centered on the view.

Java documentation for android.graphics.RenderNode.resetPivot().

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