progressdialog页面加载后不排除,在这里我很想念进度对话框没有的WebView后(进度== 100)驳回
final ProgressDialog progressDialog = new ProgressDialog(Webview.this);
WebView webview= (WebView) findViewById(R.id.webViewID);
webview.setWebViewClient(new WebViewClient());
//webview.loadData(content, "text/html", "UTF-8");
webview.loadUrl("http://hop.betfanplus.com/10000/0/mega4");
webview.setWebChromeClient(new WebChromeClient() {
@Override
public void onProgressChanged(WebView view, int progress) {
// progressDialog.show();
ProgressDialog
.show(Webview.this,
"ProgressDialog Title",
"ProgressDialog Body");
if (progress == 100) {
progressDialog.dismiss();
}
}
});
任何帮助表示赞赏。
你正在使用的不是对象中onProgresschange类本身 – silverFoxA