Condividi tramite


View.SetHandwritingBoundsOffsets(Single, Single, Single, Single) Method

Definition

Set the amount of offset applied to this view's stylus handwriting bounds.

[Android.Runtime.Register("setHandwritingBoundsOffsets", "(FFFF)V", "GetSetHandwritingBoundsOffsets_FFFFHandler", ApiSince=34)]
public virtual void SetHandwritingBoundsOffsets (float offsetLeft, float offsetTop, float offsetRight, float offsetBottom);
[<Android.Runtime.Register("setHandwritingBoundsOffsets", "(FFFF)V", "GetSetHandwritingBoundsOffsets_FFFFHandler", ApiSince=34)>]
abstract member SetHandwritingBoundsOffsets : single * single * single * single -> unit
override this.SetHandwritingBoundsOffsets : single * single * single * single -> unit

Parameters

offsetLeft
Single

the amount of pixel offset applied to the left edge outwards of the view's handwriting bounds.

offsetTop
Single

the amount of pixel offset applied to the top edge outwards of the view's handwriting bounds.

offsetRight
Single

the amount of pixel offset applied to the right edge outwards of the view's handwriting bounds.

offsetBottom
Single

the amount of pixel offset applied to the bottom edge outwards of the view's handwriting bounds.

Attributes

Remarks

Set the amount of offset applied to this view's stylus handwriting bounds. A positive offset will offset the edge outwards.The base handwriting bounds of a view is its visible bounds. The handwriting bounds offsets are applied to the base handwriting bounds to determine the final handwriting bounds.

This method is mainly used to enlarge the view's handwriting bounds for a better user experience.

Note that when the view is clipped (e.g. the view is in a android.widget.ScrollView), the offsets are applied after the view's handwriting bounds is clipped.

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