castorflex / SmoothProgressBar

A small Android library allowing you to have a smooth and customizable horizontal or circular indeterminate ProgressBar
Apache License 2.0
4.51k stars 1.01k forks source link

No animation with sdk 7 when playing with the alpha property #14

Closed tbruyelle closed 10 years ago

tbruyelle commented 10 years ago

I use NineOldDroids to make my SmoothProgressBar fades in/out, by manipulating the alpha property. It works well on recent android devices (sdk>14), but on low sdks (I tested with sdk 7 and 8), the drawable doesn't animate any more.

Do you have an idea why ?

castorflex commented 10 years ago

I'll try to have a look this week end. Thank you for the report :eyes:

castorflex commented 10 years ago

I just tried to reproduce it but it works for me (emulator api 8).

I used this: ObjectAnimator.ofFloat(mProgressBar, "alpha", mVisible ? 1f : 0f).setDuration(500).start();

Do you use the last version of SmoothProgressBar (0.3.1) ?

tbruyelle commented 10 years ago

Yes I use version 0.3.1@aar.

Hum well I don't understand why, but now it's working... Sorry for the noise, I close the issue.