关闭自动提示进行的EditText? [英] Turn off autosuggest for EditText?

查看:121
本文介绍了关闭自动提示进行的EditText?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有一种方法以编程方式关闭该自动提示列表,你键入的EditText会弹出?

Is there a way to programmatically turn off that autosuggest list which pops up as you type in EditText?

推荐答案

我有同样的问题,但我还是想设置我的XML文件,这个选项所以我做了进一步的研究,直到我发现了自己。

I had the same question but I still wanted to set this option in my XML file so I did a little more research until I found it out myself.

添加此行到您的EditText。

Add this line into your EditText.

android:inputType="textFilter" 

下面是一个提示。如果你希望能够使用ENTER键使用此行。

Here is a Tip. Use this line if you want to be able to use the "enter" key.

android:inputType="textFilter|textMultiLine"

这篇关于关闭自动提示进行的EditText?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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