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

Issues with Progress Bar

 
Jean John
Greenhorn
Posts: 24
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I am trying to implement a scenario where i have a progress bar.start button and a refresh button. When I click the start Button, the progress bar starts from zero and proceeds till max size. At this point of time, the progress bar has a dark background and a yellow progress indicator moving from start to end. Once the progress bar reaches it's max size, the entire progress bar turns green. Now I need to click on the refresh button and restart the whole process(a dark background and a yellow progress indicator moving from start to end and a green progress bar in the end).



I use the following code to achieve a green colour at the end:



The problem I am facing is that once I set the color to green, the green color stays on the entire width of the progress bar and my progress indicator doesn't work anymore.
Please help. I am at my wits end

Thanks,
Jean

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic