安卓:多行和放大器;在EditText上没有自动提示放大器、提示、EditText

2023-09-06 15:46:24 作者:一号男嘉宾

是否有可能有一个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.

 
精彩推荐
图片推荐