This commit is contained in:
2022-11-11 15:04:02 +08:00
parent 0b041bad7b
commit 042f53e134
9 changed files with 103 additions and 6 deletions

View File

@@ -89,6 +89,10 @@ public class GoogleFragment extends Fragment {
webSettings.setJavaScriptEnabled(true); // 是否开启JS支持
webSettings.setJavaScriptCanOpenWindowsAutomatically(true); // 是否允许JS打开新窗口
webSettings.setLoadWithOverviewMode(true); // 缩放至屏幕大小
webSettings.setSupportZoom(true); // 是否支持缩放
webSettings.setBuiltInZoomControls(true); // 是否支持缩放变焦,前提是支持缩放
rlWebview.addJavascriptInterface(new JsInteration(), "androidObject");