📜  webview 加载 url - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:02.815000             🧑  作者: Mango

代码示例2
// Private variable
private WebView web;

// Locating the webView ID form (For example activity_main)
myWebView = findViewById(R.id.myWebView);

// Loading the URL (google.com) into the webview
web.loadUrl("https://google.com");