Sdílet prostřednictvím


TextView.ImeHintLocales Property

Definition

Change "hint" locales associated with the text view, which will be reported to an IME with EditorInfo#hintLocales when it has focus.

public virtual Android.OS.LocaleList? ImeHintLocales { [Android.Runtime.Register("getImeHintLocales", "()Landroid/os/LocaleList;", "GetGetImeHintLocalesHandler", ApiSince=24)] get; [Android.Runtime.Register("setImeHintLocales", "(Landroid/os/LocaleList;)V", "GetSetImeHintLocales_Landroid_os_LocaleList_Handler", ApiSince=24)] set; }
[<get: Android.Runtime.Register("getImeHintLocales", "()Landroid/os/LocaleList;", "GetGetImeHintLocalesHandler", ApiSince=24)>]
[<set: Android.Runtime.Register("setImeHintLocales", "(Landroid/os/LocaleList;)V", "GetSetImeHintLocales_Landroid_os_LocaleList_Handler", ApiSince=24)>]
member this.ImeHintLocales : Android.OS.LocaleList with get, set

Property Value

The current languages list "hint". null when no "hint" is available.

Attributes

Remarks

Property getter documentation:

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

Property setter documentation:

Change "hint" locales associated with the text view, which will be reported to an IME with EditorInfo#hintLocales when it has focus.

Starting with Android O, this also causes internationalized listeners to be created (or change locale) based on the first locale in the input locale list.

<strong>Note:</strong> If you want new "hint" to take effect immediately you need to call InputMethodManager#restartInput(View).

Java documentation for android.widget.TextView.setImeHintLocales(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