1

单击 webview 中的内容后,Webview 内容消失。

    <WebView
      android:id="@+id/squadWebView1"
      android:layout_width="match_parent"
      android:layout_height="wrap_content" />

    webviewSquad1.getSettings().setJavaScriptEnabled(true);
    webviewSquad1.loadDataWithBaseURL("", String.valueOf(dataSnapshot.getValue()), "text/html", "UTF-8", "");
    webviewSquad1.setHorizontalScrollBarEnabled(false);

我有两个 webview 一个是这样的行为不端。

4

1 回答 1

0

在我更正格式错误的超链接作为响应后解决了一个问题。美是按预期加载的内容。

于 2019-03-24T09:03:51.277 回答