This commit is contained in:
yumoqing 2020-03-15 19:07:59 +08:00
parent 4834ad0af0
commit 8f6a9b2094

View File

@ -29,6 +29,7 @@ class AWebView(Widget):
wvc = WebViewClient() wvc = WebViewClient()
self.webview.setWebViewClient(wvc) self.webview.setWebViewClient(wvc)
activity.setContentView(self.webview) activity.setContentView(self.webview)
self.add_widget(self.webview)
if self.baseUrl is not None: if self.baseUrl is not None:
self.webview.loadUrl(self.baseUrl) self.webview.loadUrl(self.baseUrl)
print('go to the url=',self.baseUrl) print('go to the url=',self.baseUrl)