1、启用窗口特征,启用带进度和不带进度的进度条requestWindowFeature(Window.FEATURE_PROGRESS);requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);2、将两种进度条显示出来setProgressBarVisibility(true);setProgressBarIndeterminate(true);setProgress(600);
时间: 2024-10-05 20:39:34
1、启用窗口特征,启用带进度和不带进度的进度条requestWindowFeature(Window.FEATURE_PROGRESS);requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);2、将两种进度条显示出来setProgressBarVisibility(true);setProgressBarIndeterminate(true);setProgress(600);