I am having two values targetValue and receivedValue . Now I want to show the status on Progress bar. Means if targetValue is 1000 and receivedValue is 500 then progress bar should display 50% of filled area.
So I want to know that is there any easy way to do so... or I have to calculate the values any have to set with myProgressBar.progress = value ?
Use below
myProgressBar.progress = receivedValue /targetValue ;
The value of receivedValue /targetValue will fall in the range of 0.0 to 1.0 ;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With