简体   繁体   English

隐藏键盘自动提示栏

[英]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.

相关问题 关闭键盘后导航栏不会隐藏 - Navigation bar wont hide after closing keyboard 在片段中的软键盘弹出窗口上隐藏操作栏 - Hide action bar on soft keyboard popup in fragment 软键盘最小/关闭时自动隐藏Android底部栏 - Auto Hide Android Bottom Bar when soft keyboard minimize/close Android软键盘启动时隐藏导航栏 - Hide Navigation Bar when soft keyboard is launched Android 用户在 EditText 上键入时隐藏三星键盘下的黑条 - Hide black bar under Samsung keyboard when user types on EditText Android 隐藏导航栏/使用软键盘外观保持沉浸式模式 - Android Hide Navigation Bar/Stay in Immersive Mode with Soft Keyboard Appearance 在 webview 中输入键盘时如何隐藏底部导航栏 - How to hide bottom navagation bar when type in keyboard in webview 如何在显示键盘时隐藏Android上的导航栏和状态栏? - How to hide the navigation bar and the status bar on Android only when keyboard is shown? 移动本机键盘autosuggest阻止加载javascript自动完成小部件 - Mobile native keyboard autosuggest blocks loading of javascript autocomplete widget 在Android应用程序开发中打开键盘时如何隐藏底部导航栏? - How to hide bottom navigation bar when keyboard is open in android app development?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM