Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 724
tsil Avatar asked Aug 02 '13 23:08

tsil


1 Answers

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

like image 110
Delyan Avatar answered Nov 11 '22 23:11

Delyan