Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个指向网页的第三方链接,加载视频需要 2 分钟。当它正在加载时,它们是一个空白页面。我无法控制页面。有什么方法可以检测到使用 webview 加载的页面并显示加载对话框,直到页面出现?
谢谢
只需执行以下操作:
mWebView.setWebViewClient(new WebViewClient() { public void onPageFinished(WebView view, String url) { // do your stuff here } });
这也可能会有所帮助:
如何监听 WebView 完成加载 URL?