1
我目前使用ProgressDialog作爲我的webivew。像下面這樣:Android自定義進度對話框webview
我該如何讓只有微調器可見,而不是對話框,並居中微調?
pd = ProgressDialog.show(this, "", "Loading...",
true);
Webf = (WebView) findViewById(R.id.WebFaceId);
Webf.setWebViewClient(new WebViewClient() {
@Override
public void onPageFinished(WebView view, String url) {
if(pd.isShowing() && pd!=null)
{
pd.dismiss();
}
}
public boolean shouldOverrideUrlLoading(WebView v, String url) {
v.loadUrl(url);
return true;
}