显示在标题上的进度条

若显示带进度的进度条:

1 requestWindowFeature(Window.FEATURE_PROGRESS);

2 setProgressBarVisibility(true);

3 setProgress(10); 

 

若显示不带进度的进度条:

1 requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);

2 setProgressBarIndeterminateVisibility(true);

posted @ 2015-03-22 14:58  月轩  阅读(229)  评论(0编辑  收藏  举报