Arc-Progressbar-lib icon indicating copy to clipboard operation
Arc-Progressbar-lib copied to clipboard

how to set max progress value?????

Open PaolinoAngeletti opened this issue 3 years ago • 1 comments

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>

PaolinoAngeletti avatar Jan 31 '22 16:01 PaolinoAngeletti

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

wangkelei avatar Nov 12 '22 10:11 wangkelei