Udostępnij za pośrednictwem


HandwritingGesture.GranularityWord Field

Definition

Caution

This constant will be removed in the future version. Use Android.Views.InputMethods.HandwritingGestureGranularity enum directly instead of this field.

Operate text per word basis.

[Android.Runtime.Register("GRANULARITY_WORD", ApiSince=34)]
[System.Obsolete("This constant will be removed in the future version. Use Android.Views.InputMethods.HandwritingGestureGranularity enum directly instead of this field.", true)]
public const Android.Views.InputMethods.HandwritingGestureGranularity GranularityWord = 1;
[<Android.Runtime.Register("GRANULARITY_WORD", ApiSince=34)>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.Views.InputMethods.HandwritingGestureGranularity enum directly instead of this field.", true)>]
val mutable GranularityWord : Android.Views.InputMethods.HandwritingGestureGranularity

Field Value

Value = 1
Attributes

Remarks

Operate text per word basis. e.g. if selection includes width-wise center of the word, whole word is selected.

Strategy of operating at a granular level is maintained in the UI toolkit. A character/word/line is included if its center is within the gesture rectangle. e.g. if a selection RectF with #GRANULARITY_WORD includes width-wise center of the word, it should be selected. Similarly, text in a line should be included in the operation if rectangle includes line height center.

Refer to https://www.unicode.org/reports/tr29/#Word_Boundaries for more detail on how word breaks are decided.

Java documentation for android.view.inputmethod.HandwritingGesture.GRANULARITY_WORD.

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