安卓:多行和放大器;在EditText上没有自动提示 [英] Android: Multiline & No autosuggest in EditText

查看:134
本文介绍了安卓:多行和放大器;在EditText上没有自动提示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有可能有一个EditText,让多线并没有显示的建议?我试着用这个code:

Is it possible to have an EditText that allows multilines and doesn't show the suggestions? I tried with this code:

android:inputType="textFilter|textMultiLine"

我在此问题看到了,但它并没有为我工作。如果我尝试在同一时间同时使用时,支持的EditText多行,但建议出现。另外,他们的正常工作。

Which I saw in this question, but it didn't work for me. If I try to use both at the same time, the EditText supports multiline, but the suggestions appear. Separately, they work properly.

这是在SDK中的错误?或者,也许这是不可能把它们结合起来?

Is this a bug in the SDK? Or maybe it is not possible to combine them?

谢谢!

推荐答案

这是应该做你想要的:

android:inputType="textFilter|textMultiLine|textNoSuggestions"

虽然我还没有尝试过自己。 textNoSuggestions仅适用,因为API 5。

Although I haven't tried it myself. "textNoSuggestions" is only available since API 5.

这篇关于安卓:多行和放大器;在EditText上没有自动提示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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