Android ProgressBar.setProgressDrawable only works once?
Posted
by Chuck
on Stack Overflow
See other posts from Stack Overflow
or by Chuck
Published on 2010-05-10T19:38:56Z
Indexed on
2010/06/10
12:42 UTC
Read the original article
Hit count: 1111
In a color picker, I have 3 SeekBars for Hue, Saturation, and Value. Calling setProgressDrawable on these SeekBars only works once -- at initialization from onCreate. When the user updates the Hue SeekBar, I want to call setProgressDrawable for the Saturation and Value SeekBars, to show the user their color choices for the new Hue.
But all calls to setProgressDrawable (after the initial ones from onCreate) cause the SeekBar to be blanked.
How can I update the background gradient of my SeekBars based upon user input?
Thanks! Chuck
© Stack Overflow or respective owner