在我的应用程序里面,需要显示一个进度框,不需要标题和信息,只需要在中间显示进度动画。
ProgressDialog pd = new ProgressDialog(this);
ProgressBar pb = new ProgressBar(this);
pd.setContentView(R.layout.customprogressdialog);
pd.show();
执行程序后有错误提示,在 setContentView 之前要调用 request Feature 。我试着这样做但是仍得到一个错误。
为什么要在 setContentView 之前要调用 request Feature 呢?