How i can fill color on image(i.e fuel image) in specific area as per Seek bar progress.
i have tried following solution but it is not helpful much as per my requirement.
please find below image for more reference.
How i can fill color on image(i.e fuel image) in specific area as per Seek bar progress.
i have tried following solution but it is not helpful much as per my requirement.
please find below image for more reference.
Copyright © 2021 Jogjafile Inc.
You could also draw a bitmap on top of the layer you have. Simply add a bitmap with the same dimensions as the bar (or whatever you have) you want to have coloured in. Then add the colours and say how far it should colour in the bar.
Example:
widthToFill would be a variable with the value of how much you want to draw in. You could also draw this dynamic by getting the screenwidth and calculating the percentages.
Best of luck.