ProgressBar mProgressBar = (ProgressBar)
findViewById(R.id.progress_bar);
 
mProgressBar.setProgressDrawable(getResources().getDrawable(R.drawable.progress_drawable));

set the drawables up in a selector xml file





On Apr 7, 5:47 pm, ls02 <[email protected]> wrote:
> How do I change progress bar drawable at runtime? I have set of
> drawables and I thought setProgressDrawable would change the drawable
> but it does not seem to work on horizontal progress bar.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

To unsubscribe, reply using "remove me" as the subject.
  • [android-deve... ls02
    • [android... Fred Grott(Android Expert, http://mobilebytes.wordpress.com)

Reply via email to