The concept would be to have a red> green gradient selected as an indicator of your progress bar. He will hide the pushed out and open it as he goes. Anyway, the theory is this.
In your XML, if you do it this way, set a value android:intermediateDrawableto indicate your gradient, which you will need to do yourself.
source
share