[英]hide keyboard autosuggest bar
I have tried 我努力了
android:inputType="textFilter"
android:inputType="textNoSuggestions"
x.setInputType(InputType.TYPE_TEXT_FLAG_NO_SUGGESTIONS);
android:inputType="textVisiblePassword"
I can see there are a lot of things to try Android programmatically disable autocomplete/autosuggest for EditText in emulator 我可以看到很多事情可以尝试在模拟器中以编程方式禁用EditText的自动完成/自动建议功能
Is there any method that works on all devices? 是否有适用于所有设备的方法? For instance those commands above don't work on my device, yet work for other people.
例如,上述命令在我的设备上不起作用,但对其他人却起作用。
x.setInputType(InputType.TYPE_TEXT_VARIATION_VISIBLE_PASSWORD);
This works, even though the xml version does not. 即使xml版本不起作用,此方法也有效。 Probably won't work on all device I install it on.
可能无法在我安装了它的所有设备上使用。 Weird issue.
奇怪的问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.