禁用自我暗示有关的WebView?暗示、自我、WebView

由网友(起名真费劲儿)分享简介:我有一些HTML文本输入到一个web视图,我需要禁用来自Android的这些输入的autosuggetions,而不是从HTML(自动完成=关闭)。I have some HTML text inputs into a WebView, and I need to disable the autosuggetions...

我有一些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:

http://roysutton.com/2012/02/21/$p$pventing-auto-fill-in-android-webview/

阅读全文

相关推荐

最新文章