Starting from version 2.1.0 the progress is not working
MichaelHefetz opened this issue · 4 comments
I have a code build on version 2.0.1 and it works fine
When updated gradle to 2.2.0 nothing is showed in the place of the progress
my code:
<com.github.rahatarmanahmed.cpv.CircularProgressView
android:id="@+id/progressBar"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="24dp"
android:layout_height="24dp"
android:layout_centerVertical="true"
android:layout_gravity="right"
android:layout_marginRight="12dp"
app:cpv_color="#ffffff"
app:cpv_indeterminate="true"
app:cpv_thickness="2dp"/>
I have tried to remove all extra params so it is like in the sample
<com.github.rahatarmanahmed.cpv.CircularProgressView
android:id="@+id/progressBar"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="24dp"
android:layout_height="24dp"
app:cpv_indeterminate="true"/>
Still nothing...
No exceptions in the log...
I also have the following dependencies:
compile 'com.android.support:appcompat-v7:22.1.1'
compile 'com.android.support:recyclerview-v7:22.1.1'
compile 'com.android.support:cardview-v7:22.1.1'
compile 'com.android.support:support-v4:22.1.1'
Oh man this is a funny bug. When checking if you specified a color for the progress bar, it uses a default of -1 to indicate that you didn't provide one. Unfortunately, the special thing about the color #FFFFFF is that as an integer it evaluates to... surprise, -1!
So I'm pretty sure that's your issue. I'll fix this soon. (In the meantime, try using a different color and let me know if that actually was your issue)
I think this is something else because I have another progress in a
different color...I tried to remove the color so it will take default...
the same issue
On May 2, 2015 7:56 PM, "Rahat Ahmed" notifications@github.com wrote:
Oh man this is a funny bug. When checking if you specified a color for the
progress bar, it uses a default of -1 to indicate that you didn't provide
one. Unfortunately, the special thing about the color #FFFFFF is that as an
integer it evaluates to... surprise, -1![image: 2015-05-02_11-52-28]
https://cloud.githubusercontent.com/assets/3174006/7441908/117537bc-f0c2-11e4-9752-309b0d7bfe8d.pngSo I'm pretty sure that's your issue. I'll fix this soon. (In the
meantime, try using a different color and let me know if that actually was
your issue)—
Reply to this email directly or view it on GitHub
#11 (comment)
.
I would make sure that your theme colorAccent from the support library is set to a color. I'm afraid if it's for some reason set to 0 by default, it might draw it transparent. The progress bar will look for a color in this order: color as xml property, colorAccent in support theme, android:colorAccent from 5.0+ native theme, and then the default color.
But you did mention another color so it might not be that. I'm not really sure what could cause this. If you can replicate and isolate the issue in a test application, I can take a closer look.
Closing due to no activity