Skip to content
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

Icon rcProgressBar Not displaying progress at all #67

Closed
zach-morgan opened this issue Apr 7, 2018 · 3 comments
Closed

Icon rcProgressBar Not displaying progress at all #67

zach-morgan opened this issue Apr 7, 2018 · 3 comments
Labels

Comments

@zach-morgan
Copy link

So I have been working with the library for a little bit and I can't get progress to show on the icon progress bar. It works perfectly fine for all other versions of the bar. For example, this code snippet is directly from the example code, and the progress displays correctly when I switch it to just a RoundCornerProgressBar, but once I add the Icon in, it displays the colors and everything else correctly, but shows no progress..
<com.akexorcist.roundcornerprogressbar.IconRoundCornerProgressBar android:layout_width="250dp" android:layout_height="30dp" android:layout_marginBottom="8dp" android:layout_marginStart="8dp" android:layout_marginTop="8dp" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent" app:rcBackgroundColor="@color/white" app:rcBackgroundPadding="2dp" app:rcMax="100" app:rcProgress="50" app:rcProgressColor="@color/murica_flag_blue" app:rcRadius="0dp" />

@1-riverfish
Copy link

Same question,solved?

@tranleduy2000
Copy link

There is a bug of this library, ivProgressIcon layouts incorrectly in IconRoundCornerProgressBar.java
Before call setProgress and setMax methods, you must layout this view

       progressView.measure(View.MeasureSpec.UNSPECIFIED, View.MeasureSpec.UNSPECIFIED);
       progressView.layout(0, 0, progressView.getWidth(), progressView.getHeight());

@akexorcist
Copy link
Owner

akexorcist commented Apr 17, 2020

Icon size attribute is required

app:rcIconSize="dimension"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants