I use
requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS); setSupportProgressBarIndeterminateVisibility(true); setSupportProgressBarIndeterminateVisibility(false);
to enable / disable an indefinite progress bar. It worked with all devices with ActionBarSherlock, but when used with ActionBarCompat, it works only for Android versions above 2.3.
I was thinking about using WindowCompat instead of Window, but WindowCompat does not have the FEATURE_INDETERMINATE_PROGRESS flag.
android android-progressbar android-actionbar-compat
tsil
source share