MackHartley / RoundedProgressBar

A customizable, animated progress bar that features rounded corners. This Android library is designed to look great and be simple to use 🎉

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Why can't Max be set for progress?

afrazakhavan opened this issue · comments

how to set progressview.setmax();

How can I access the following method?

This issue has been inactive and is now considered stale.

Hi @afrazakhavan, sorry about the delay in response. The progress bar only goes from 0 -> 100, there is no way to change that. If you have a different range, like 1 -> 50, you could just do the math to get it to fit the 0 -> 100 range.

You can also have the progress text say whatever you want by setting the ProgressTextFormatter : https://github.com/MackHartley/RoundedProgressBar/blob/master/roundedprogressbar/src/main/java/com/mackhartley/roundedprogressbar/RoundedProgressBar.kt#L506

If that doesn't make sense or solve your issue just lemme know