Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

To change colour of Progress bar

 
Nehel Patel
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am trying to draw progress bar in my android application using linear layout in xml.


The progress bar is coming in white colour on emulator, but when I run same code on htc, progress bar is coming in green color, and on G1 it is with yellow color. I want all in Yellow colour. How can I give Colour?? or is there any method by which I can use my own image for progress bar?
I have tried android:progressDrawable="@drawable/progress_bar" in xml but its not working. Please help

Regards
 
Monu Tripathi
Rancher
Posts: 1369
1
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
See if this and this can help.
 
Nehel Patel
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi monu, Thanks for the reply...

I have tried the option which is given in the link. I copied sdk's drawable image and xml in res/drawable of my project, but still color of progressbar is not changing.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic