-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CircularProgressDrawable always recieves animation fraction 1.0 #58
Comments
Cool, thank you for your detailed issue! I will have a look at it asap. |
Hey, I wasn't able to reproduce your bug, but I tried to fix it anyway. Can you try it ? I uploaded a snapshot, all you need is: repositories {
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
}
dependencies {
compile 'com.github.castorflex.smoothprogressbar:library-circular:1.0.2-SNAPSHOT@aar'
} If you wanna take a look, I made a new branch => https://github.com/castorflex/SmoothProgressBar/tree/issue58 |
Hi! I haven't debug your changes for now. Will do it later. Thank you for changes! |
I've just updated the demo on the store. Can you test it? |
I have the same issue on 1.0.2. |
Hi @Wolftein, are you also under 4.2.2 ? |
@castorflex i'm currently using 4.4.4 (CyanogenMod v11 M1) the visual effect that i have is similar like it reachs a point and flickers the animation and then goes back to initial state. |
@castorflex hi, there! I was looking into issue while debugging Also I found that my initial assumption isn't right. So P.S. I'm testing on |
👍 I can confirm this happens on an S5 running 4.4 as well while on a Nexus 5 running lollipop everything is fine |
Did you guys try with the last release? (v1.1.0) |
The bug still occurs, tested on Android 4.4.4 |
Tried v1.1.0 on S5, on lollipop, it works good. Before i was using v1.0.+ and it had problem |
Hello! First of all, thanks for nice library :)
Ok, now about issue.
_Before fix_
P.S. Taken from demo app from Play Store.
On Nexus 4 runing android 4.2.2 I've reproduced bug of circular progress bar lagging. When I've debuged issue I found that animation toggles between 2 sweep angles one is 20 another 300. On ui it makes effect of progress bar rotating with high speed. Here is the line code which point to the problem I see. During runtime
animatedFraction
always has1.0
value which messes animation at all.Temporary fix.
Add dependency on NineOld and replaced imports within
CircularProgressDrawable
dependencies { compile 'com.nineoldandroids:library:2.4.0' }
This made ValueAnimator to return proper animatedFraciton value.
_After fix_
Can you take a look on issue? I would like to use pure dependency instead of bundling sources of lib in my project, also using
Nine old
is not what I need, because I'm not targeting old platform.Looking forward your response.
Best regards, Tom Koptel.
The text was updated successfully, but these errors were encountered: