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

how to set max progress value????? #3

Open
PaolinoAngeletti opened this issue Jan 31, 2022 · 1 comment
Open

how to set max progress value????? #3

PaolinoAngeletti opened this issue Jan 31, 2022 · 1 comment

Comments

@PaolinoAngeletti
Copy link

I'm trying this library, and the weird thing is that I can't find a way to set the maximum value to the object.
"ap_progress_maxscale" method doenst works.

attach an example:
max:100
progress:99

I expect the bar to be almost full, but instead:
immagine

xml code

progress_bar.arc_progress.ArcProgress
android:id="@+id/progressoArco"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:ap_progress="99"
app:ap_progress_maxscale="100"
app:ap_progress_background_color="#EDEDED"
app:ap_background_progressbar_width="25"
app:ap_foreground_progressbar_width="25"
app:ap_progress_color="#71CC75"
app:ap_progress_roundedCorner="true"
android:layout_marginBottom="@dimen/_10sdp"

</progress_bar.arc_progress.ArcProgress>

@wangkelei
Copy link

Pleaser try this code "canvas.drawArc(progressRectf, startAngle, 180 * progress / 100F, false, outerArc)" on OnDraw function, it works for me!

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

No branches or pull requests

2 participants