I have an app where I want to set the progress of a specific SeekBar based upon a value retrieved from a web service. However when I use SetProgress(int) only the "seeker" of the SeekBar gets set. The bar does not get "filled" out as expected.
This is what it looks like :
Any ideas on how to fix this issue ?
Try to set max value first and then set the progress.
Turns out this is a bug in Android. See also:
Android SeekBar doesn't refresh after dynamically setting max value with setMax
android progressBar does not update progress view/drawable
A workaround is to do something like setMax(0) followed by setMax(max) and then setProgress().