[Solved] showing the calculated percentage on Progressbar [closed]


Quick searching for “android progressbar example” points us to the documentation.
It shows that you can use progressBar.setProgress(int progress).

The progress variable should be betwee ProgressBar’s minimum and maximum (setMax()).

If you show progress from 0 to 100, and your total is 100, and your value or final1 is for example 33, it will set to 33%.

So either change progressBar’s maximum to your total, or normalize the value between progressbar’s min and max properties.

2

solved showing the calculated percentage on Progressbar [closed]