Thursday, 3 October 2013

Changing progressbar level

Changing progressbar level

I have a simple activity that is suppose display a progress bar with
different fill levels. This activity with the progress bar is display
after a student undertake a practice test on my mobile application. So the
progess bar would show if the student passed showing all blue with the
color filling it. if it is an average performance. The color is half
filled in green. If it is a poor performance the color is completely red
with a slight color fill.
My little code to set fill color is below but it not working
if(grade.equals("passed")){
setProgress(100);
}
else{
setProgress(50);
}

No comments:

Post a Comment