From 44f5c65cf7391d9e990d648698cc03a10f8bb07a Mon Sep 17 00:00:00 2001 From: leijie Date: Fri, 28 Jul 2023 22:23:46 +0800 Subject: [PATCH] =?UTF-8?q?[update]:[update=20README,=E6=9B=B4=E6=96=B0Cus?= =?UTF-8?q?tomWebview=E7=9A=84=E6=95=99=E7=A8=8B]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/README.md b/README.md index eaa24b8..8521142 100644 --- a/README.md +++ b/README.md @@ -129,6 +129,22 @@ for example: will print 'JS got a message hello' and 'JS responding with' in webview console. +### Switch to CustomWebview +* activity_main.xml +```xml + + +``` +* MainActivity.java +Class BridgeWebview change to CustomWebview; +```java + CustomWebView webView = (CustomWebView) findViewById(R.id.webView); + +``` + ## Notice This lib will inject a WebViewJavascriptBridge Object to window object.