This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Android and the fly likes To change colour of Progress bar Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Mobile » Android
Bookmark "To change colour of Progress bar" Watch "To change colour of Progress bar" New topic
Author

To change colour of Progress bar

Nehel Patel
Greenhorn

Joined: Feb 09, 2010
Posts: 21
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

Joined: Oct 12, 2008
Posts: 1369
    
    1

See if this and this can help.


[List of FAQs] | [Android FAQ] | [Samuh Varta]
Nehel Patel
Greenhorn

Joined: Feb 09, 2010
Posts: 21
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: To change colour of Progress bar