How can I change the Android SeekBar Thumb drawable after 'onCreate' method? -


currently attempting change drawable image of thumb of seekbar in android. in oncreate() method able change thumb using following

mseekbar.setthumb(mydrawable); 

however, after oncreate method called, attempt change again using different drawable same method , thumb disappears. api description 'sets thumb drawn @ end of progress meter within seekbar.' mean image drawn off screen (if 'fill_parent' seekbar)? have tried changing offset no avail, has else run issue? or know how change thumb image while progress changing?

i should mention setting background drawable seekbar blank xml file (i.e. not have background image).

one thing has partially worked me use setbounds method problem have run in app resets position of thumb drawable beginning of line. don't know if related how code works or if happens no matter how implemented.

drawable mythumb = getresources().getdrawable(r.drawable.slider_button); mythumb.setbounds(new rect(0, 0, mythumb.getintrinsicwidth(),mythumb.getintrinsicheight())); skbr.setthumb(mythumb); 

Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -