I'm currently trying to change the popped Thumb image in the search bar in android. In the onCreate () method, I can effectively change my thumb using the following
mSeekBar.setThumb(myDrawable);
However, after calling the onCreate method, I try to change it again using another method similar to the method, and the thumb disappears. Description api: "Sets the thumb that will be drawn at the end of the progress bar in the SeekBar." Does this mean that the image will be displayed on the screen (if I "fill_parent" using my search bar)? I tried changing the offset to no avail, does anyone else encounter this problem? Or do you know how to change the thumb image while changing the course?
I should also mention that I set my background image to search in an empty xml file (i.e. does not have a background image).
source
share