0

I need help in doing a custom progress bar. I would like to change the stock android progress bar like this one: http://i56.tinypic.com/dlgbae.jpg

To something like this or any other shape:

http://i52.tinypic.com/2r750dh.jpg

Can someone point me to the right direction, please? Thanks

bond
  • 573
  • 1
  • 6
  • 5

1 Answers1

2

You need to load different Drawable for the progress bar

Simple way to do this is just using

android:progressDrawable="@drawable/myprogbar_new_drawable"

Either put PNG in res/drawable folder in your project or create your own xml with specify colors/gradients/shapes etc.

Nikola Despotoski
  • 49,966
  • 15
  • 119
  • 148
  • Thanks. But how will the image be formatted? Can you point me to some example code? – bond Aug 14 '11 at 14:10
  • http://stackoverflow.com/questions/2819778/custom-drawable-for-progressbar-progressdialog See here this is with colors it can be adapted with custom pictures as well – Nikola Despotoski Aug 14 '11 at 14:13