No FEATURE_INDETERMINATE_PROGRESS in ActionBarCompat for Android 2.3-

情到浓时终转凉″ 提交于 2019-12-12 11:06:08

问题


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.


回答1:


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



来源:https://stackoverflow.com/questions/18027603/no-feature-indeterminate-progress-in-actionbarcompat-for-android-2-3

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!