Search code examples
androidandroid-progressbarandroid-actionbar-compat

No FEATURE_INDETERMINATE_PROGRESS in ActionBarCompat for Android 2.3-


I'm using

requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);
setSupportProgressBarIndeterminateVisibility(true);
setSupportProgressBarIndeterminateVisibility(false);

to enable/disable indeterminate progress bar. With ActionBarSherlock, it worked with all devices but when using it with ActionBarCompat, it works only for Android versions above 2.3.

I thought about using WindowCompat instead of Window but WindowCompat doesn't have FEATURE_INDETERMINATE_PROGRESS flag.


Solution

  • ActionBarActivity now has supportRequestWindowFeature, you probably need to use that to get the full functionality.