setContentView前调
requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);
显示progress
setProgressBarIndeterminateVisibility(true);
隐藏progress
setProgressBarIndeterminateVisibility(false);
一般常用到获取列表数据的activity里。
注意:用上面的代码前提是
extends ActionBarActivity