android运行出错

zh_lh 发布于 2015/04/19 21:51
阅读 102
收藏 0
super.onCreate(savedInstanceState);
//requestWindowFeature(Window.FEATURE_PROGRESS);

requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);

setContentView(R.layout.activity_title_progress_bar);

setProgressBarIndeterminateVisibility(true);

运行是报错:requestFeature()must be called before adding content;


加载中
0
117
117
setContentView(R.layout.activity_title_progress_bar);   放在requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);前面
返回顶部
顶部