安卓禁用predictive文本 [英] android disabling predictive text

查看:111
本文介绍了安卓禁用predictive文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要disalble的predictive texing.When我们举一个输入通过softkeyboard的predictive发短信不应该来,我只需要$ C $下禁用predictive texting.Can谁能帮助我?

I want to disalble the predictive texing.When we give an input through the softkeyboard the predictive texting should not come,i just need the code for disabling the predictive texting.Can anyone help me?

推荐答案

您可以在XML布局设置inputType属性或致电setInputType()与一个或多个(以分隔|)。这些值

You can set the inputType property in the XML layout or call setInputType() with one or more (seperated by |) of those values.

要禁用建议使用文本| textNoSuggestions。然而,Sense界面的键盘似乎忽略的是,加入textFilter在这里工作。

To disable the suggestions use text|textNoSuggestions. However the Sense UI keyboard seems to ignore that, adding textFilter works here.

这篇关于安卓禁用predictive文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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