android - ProgressBar Animation -


i want use different animations in 1 progressbar. code init , set animation:

progressbar = (progressbar) this.view.findviewbyid(r.id.progressbar); progressbar.setindeterminate(true); progressbar.setindeterminatedrawable(this.getresources().getdrawable(r.anim.progress_small)); 

when want code, working well, when set new animation

 `progressbar.setindeterminatedrawable(this.getresources().getdrawable(r.anim.progress_small))` 

it doesn't work. how use 1 progressbar more animation?`

you retrieving animation resources getdrawable().

i may mistaken, don't think there way 'animate' progress changes in progress bar other changing progress in steps desired value. wrote sample code similar question.


Comments

Popular posts from this blog

How do you change vbulletin's home page to the forums instead of the default (CMS or Activity Stream)? -

c++ - Troubles when compiling phash program -