I had a similar issue before.. seems to do with Window display timing, I couldn't work out. However, I found if I wrapped the ProgressBar in a Layout, and applied the Hide/Show logic to the Layout instead, that worked fine, the progress bar was hidden and displayed when required. Worth a try, maybe.
On Sunday, October 20, 2013 1:52:56 AM UTC+8, Brad OHearne wrote: > On Friday, October 18, 2013 5:49:00 PM UTC-7, TreKing wrote: >> >> I tried it both in an Activity and in a Fragment, and both worked as >> expected. >> > > Well here's an interesting twist. I spent some time isolating the issue, > and behavior did not change. But much more curious, is that my code as-is > DOES animate the ProgressBar properly every time it is displayed in the > Android Studio simulator, but it does not animate on subsequent displays > after the first one on my hardware device, which is a Samsung Galaxy 2 > Skyrocket. > > Anyone know why that might be? I'm not really sure what to make of that. > > Brad > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

