简体   繁体   中英

Android Actionbar Spinning Samsung Galaxy 3 FEATURE_INDETERMINATE_PROGRESS

I'm adding the Compatibility Library V7 in a project, following the Android-Developers Blog:

http://android-developers.blogspot.co.uk/2013/08/actionbarcompat-and-io-2013-app-source.html

The action bar has been working well since the beginning, all fine. But now, I've just seen something weird only in Samsung Galaxy S3 with Android 4.0.4.

All Activities, which extend ActionBarActivity , where I need to show " setSupportProgressBarIndeterminateVisibility " are showing immediately the Spinning, without any call to " setSupportProgressBarIndeterminateVisibility ". I've checked that it's only appearing when I add the below line in " onCreate " to show the spinning icon.

supportRequestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);

Do you know why the spinning icon appear for itself? it's only happening in this device (Samsung S3)

By the way, I have all compatibility libraries up to date.

If I remember correctly, on ICS (4.0), the progress indicators are shown by default when requesting the feature. This was fixed in JellyBean, see this commit .

As a workaround, you can always call setSupportProgressBarIndeterminateVisibility anyway and set it to GONE when you don't need it.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM