possible to set custom value instead of percentage#6
possible to set custom value instead of percentage#6Devofure wants to merge 1 commit intodaimajia:masterfrom Devofure:custom_value
Conversation
|
Hi, could you describe when we need this method?
|
|
well the reason I made setCustomValue is because I wanted to show for example: I want to put another value instead of percentage, the progress could work as before but the value of the progress could be another, like how many files already have been downloaded in numbers. So the incrementProgressBy doesn't have to be invalid. You could implement this idea in you project, I think it will be a great feature. |
|
👍 |
hippyk
left a comment
There was a problem hiding this comment.
I suggest that we give the ProgressBar two parameters. One is the current percentage for calculating the length of the reached part. The other is the current custom value to display.
If you want, you could do the same changes instead of making a pull, I hope it is ok with you about the changes I made