由网友(愿你与阳光同在)分享简介:我用requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);setSupportProgressBarIndeterminateVisibility(true);setSupportProgressBarIndeterminateVisibility...
我用
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.
相关推荐
最新文章