EditText 和 MultiAutoCompleteTextView 建议
我在我的应用程序中使用 MultiAutoCompleteTextView 来显示各种建议。
我注意到 MultiAutoCompleteTextView 不支持默认带有 EditText 的常规 Android 建议(软键盘上方弹出的建议条)。
有没有办法同时显示常规建议和我想在我的文本中显示的建议?多重自动完成文本视图?
I'm using a MultiAutoCompleteTextView in my app to show various suggestions.
I noticed that MultiAutoCompleteTextView doesn't support the regular android suggerstion that come defaultly with an EditText (the strip of suggestions that pops above the soft keyboard.
Is there a way of showing both the regular suggestions, and the ones I want to show in my MultiAutoCompleteTextView?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我发现只有当我使用
setRawInputType()
设置输入类型时,设置输入类型才会生效。我还发现使用InputType.TYPE_TEXT_FLAG_AUTO_CORRECT
的唯一方法是包含还包括
InputType.TYPE_CLASS_TEXT
。所以它会导致这样的结果:I found that setting the input types only took effect when I set them with
setRawInputType()
. I also found out that the only way to useInputType.TYPE_TEXT_FLAG_AUTO_CORRECT
was to includeinclude
InputType.TYPE_CLASS_TEXT
also. So it would result in something like this: