禁用自我暗示有关的WebView? [英] Disabling autosuggestion on WebView?
本文介绍了禁用自我暗示有关的WebView?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一些HTML文本输入到一个web视图,我需要禁用来自Android的这些输入的autosuggetions,而不是从HTML(自动完成=关闭)。
I have some HTML text inputs into a WebView, and I need to disable the autosuggetions on these inputs from Android, not from HTML (autocomplete=off).
我怎样才能做到这一点?
How can I do this?
推荐答案
这个问题困扰了我相当长一段时间,但解决的方法很简单:
This problem vexed me for quite a while but the solution is very simple:
webview.getSettings().setSaveFormData(false);
我写在这里:
I wrote about it here:
<一个href="http://roysutton.com/2012/02/21/$p$pventing-auto-fill-in-android-webview/">http://roysutton.com/2012/02/21/$p$pventing-auto-fill-in-android-webview/
这篇关于禁用自我暗示有关的WebView?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文