Condividi tramite


TextView.TextLocales Property

Definition

Get the default LocaleList of the text in this TextView. -or- Set the default LocaleList of the text in this TextView to the given value.

public virtual Android.OS.LocaleList TextLocales { [Android.Runtime.Register("getTextLocales", "()Landroid/os/LocaleList;", "GetGetTextLocalesHandler", ApiSince=24)] get; [Android.Runtime.Register("setTextLocales", "(Landroid/os/LocaleList;)V", "GetSetTextLocales_Landroid_os_LocaleList_Handler", ApiSince=24)] set; }
[<get: Android.Runtime.Register("getTextLocales", "()Landroid/os/LocaleList;", "GetGetTextLocalesHandler", ApiSince=24)>]
[<set: Android.Runtime.Register("setTextLocales", "(Landroid/os/LocaleList;)V", "GetSetTextLocales_Landroid_os_LocaleList_Handler", ApiSince=24)>]
member this.TextLocales : Android.OS.LocaleList with get, set

Property Value

the default LocaleList of the text in this TextView.

Attributes

Remarks

Property getter documentation:

Get the default LocaleList of the text in this TextView.

Java documentation for android.widget.TextView.getTextLocales().

Property setter documentation:

Set the default LocaleList of the text in this TextView to the given value.

This value is used to choose appropriate typefaces for ambiguous characters (typically used for CJK locales to disambiguate Hanzi/Kanji/Hanja characters). It also affects other aspects of text display, including line breaking.

Java documentation for android.widget.TextView.setTextLocales(android.os.LocaleList).

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