I'm developing a library with some widgets for Android but I need to use a bitmap as a ProgressBar with a color that fills it as the progress bar. The below image describes what I mean:
My first guess is to create a PNG with inverse transparent background and add a square painting the invisible background like this:
Is there a better way to do this? What would you do to create this as a ProgressBar.
Thank you.