可以在标题栏只设置水平进度条,但不能仅设置环形进度条?
下面是设置水平进度条的效果:
代码如下:
requestWindowFeature(Window.FEATURE_PROGRESS);
setContentView(R.layout.activity_main);
setProgressBarVisibility(true);
setProgress(1000);
但如果仅写下面代码:
requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);
setContentView(R.layout.activity_main);
setProgressBarIndeterminate(true);
环形进度条不显示,为什么?