标题栏显示加载
//标题栏显示加载
requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);
setProgressBarIndeterminateVisibility(true);
//加载完成后隐藏
setProgressBarIndeterminateVisibility(false);
对话框显示加载
//显示加载进度框,最后一个参数false点击返回键不可取消
ProgressDialog pd = ProgressDialog.show(this, "请稍候...","正在搜索...",true,false);
//加载完消失
pd.dismiss();