简体   繁体   中英

Turn off suggestions bar for Chrome in Android phone

I am looking to turn off spelling suggestions for a input box and I am not able to achieve it.

I used autocomplete="off" , autocapitalize="off" and spellcheck="off" for the input but am able to see the bar above keypad showing suggestions.

This is affecting my layout. Looking for working solutions.

如果您为此使用Cordova,则在html5中有spellcheck属性。

<input type="text" spellcheck="false">

you need to be clear about the input box, is it an edit text? if yes using the following in your xml could help :

android:inputType="textNoSuggestions"

For html input , you can use autocorrect attribute

<input autocorrect="off"/>

For native android xml EditText , you can specify inputType

<EditText
    android:inputType="textNoSuggestions"/>

Hope this helps.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM