若显示带进度的进度条:
1 requestWindowFeature(Window.FEATURE_PROGRESS);
2 setProgressBarVisibility(true);
3 setProgress(10);
若显示不带进度的进度条:
1 requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);
2 setProgressBarIndeterminateVisibility(true);