1. 在ActionBar上加ProgressBar
// This has to be called before setContentView and you must use the // class in android.support.v4.view and NOT android.view requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);
To show/hide progress in action bar. Notice with actionbarsherlock you must use boolean.TRUE/FALSE, not just true/false...
if (getSupportLoaderManager().hasRunning Loaders()) { setProgressBarIndeterminateVisibility(Boolean.TRUE); } else { setProgressBarIndeterminateVisibility(Boolean.FALSE); }
2. 自定义ActionBar