如何避免软键盘自动显示正确的建议? [英] how to avoid soft keyboard showing auto correct suggestion?

查看:420
本文介绍了如何避免软键盘自动显示正确的建议?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不希望我的softkeyboard显示这些建议和任何喜欢的符号,,,:!

I dont want my softkeyboard show these suggestions and any of the symbols like !, ", ,, :,'.

推荐答案

要停止提供建议,下面的属性添加到您的EditText在XML:

To stop offering suggestions, add the following attribute to your EditText in XML:

android:inputType="textNoSuggestions"

和/或使用添加多种类型的 | 如下:

and/or add multiple types using | as below:

android:inputType="textNoSuggestions | text"

这篇关于如何避免软键盘自动显示正确的建议?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆