次の方法で共有


TextView.IsSuggestionsEnabled Property

Definition

Return whether or not suggestions are enabled on this TextView.

public virtual bool IsSuggestionsEnabled { [Android.Runtime.Register("isSuggestionsEnabled", "()Z", "GetIsSuggestionsEnabledHandler")] get; }
[<get: Android.Runtime.Register("isSuggestionsEnabled", "()Z", "GetIsSuggestionsEnabledHandler")>]
member this.IsSuggestionsEnabled : bool

Property Value

true if the suggestions popup window is enabled, based on the inputType.

Attributes

Remarks

Return whether or not suggestions are enabled on this TextView. The suggestions are generated by the IME or by the spell checker as the user types. This is done by adding SuggestionSpans to the text.

When suggestions are enabled (default), this list of suggestions will be displayed when the user asks for them on these parts of the text. This value depends on the inputType of this TextView.

The class of the input type must be InputType#TYPE_CLASS_TEXT.

In addition, the type variation must be one of InputType#TYPE_TEXT_VARIATION_NORMAL, InputType#TYPE_TEXT_VARIATION_EMAIL_SUBJECT, InputType#TYPE_TEXT_VARIATION_LONG_MESSAGE, InputType#TYPE_TEXT_VARIATION_SHORT_MESSAGE or InputType#TYPE_TEXT_VARIATION_WEB_EDIT_TEXT.

And finally, the InputType#TYPE_TEXT_FLAG_NO_SUGGESTIONS flag must not be set.

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

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