本文介绍了在ActionBarCompat没有FEATURE_INDETERMINATE_PROGRESS为Android 2.3-的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我用
requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);
setSupportProgressBarIndeterminateVisibility(true);
setSupportProgressBarIndeterminateVisibility(false);
启用/禁用不确定的进度条。随着ActionBarSherlock,它的所有设备的工作,但与ActionBarCompat使用时,它仅适用于Android的版本2.3以上。
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.
我想过使用,而不是窗口WindowCompat但WindowCompat没有FEATURE_INDETERMINATE_PROGRESS标志。
I thought about using WindowCompat instead of Window but WindowCompat doesn't have FEATURE_INDETERMINATE_PROGRESS flag.
推荐答案
ActionBarActivity
现在有 supportRequestWindowFeature
,你可能需要用它来获得完整的功能。
ActionBarActivity
now has supportRequestWindowFeature
, you probably need to use that to get the full functionality.
这篇关于在ActionBarCompat没有FEATURE_INDETERMINATE_PROGRESS为Android 2.3-的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!