ProgressBar.setProgressDrawable not working for Android 2.3 -
I am currently working with dynamically updated Whenever we need to update the dialog, we call the following code:. However, it does not only update the progress bar, but it completely takes the progress bar out where the white space is left anywhere. However, if I set This call works fine in Android 4.0+, but in Android 2.3 we are running in some trouble. Any ideas? Edit In this way we set up progress in XML: I got the same bug, but it has been resolved by using < / P> This means there is a new drawable set for the seekbar, but the drawable size is 0, so you will not see anything. ProgressBar . Through a few percentages, the prawnsbar sets the color of a different color. Currently we have various color clips defined in drawable XML. The one entitled
progressbar_blue_states is as detailed:
progressBar.setProgressDrawable (getResources () getDrawable (R.drawable.progressbar_blue_states));
android: progressDrawable = "@ drawable / progressbar_blue_states" are in XML and carry this
call setProgressDrawable () , it loads correctly. We need setprogressDrawable to update the colors as needed.
Rect range = mySeekBar.getProgressDrawable (). GetBounds (); MySeekBar.setProgressDrawable (newSeekBarBackground); MySeekBar.getProgressDrawable () setBounds (border)
Comments
Post a Comment