【问题标题】:clear content : base layer doesn't match shown logcat for clearing webview contents in android清除内容:基础层与显示的用于清除 android 中的 webview 内容的 logcat 不匹配
【发布时间】:2014-07-09 18:27:33
【问题描述】:

当我使用 webview.clearview() 清除之前加载的 webview 内容时,LogCat 将文本显示为

"05-21 13:39:48.730: V/webcore(28508): clear content : base layer doesn't match"

和我的 webview 重复加载相同的内容。

提前致谢

【问题讨论】:

    标签: android-webview loaddata


    【解决方案1】:

    clearView() API 有点奇怪。如果您希望 webview 不显示任何内容,只需调用:

    webview.loadUrl("about:blank");
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-04-30
      • 2011-03-05
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多