I would like to use ProgressBar with the completed part with color black, alpha 0.5 (so it can see through), while the remaining part is white alpha 1.0 (which is not transparent at all).
I try to use
<item android:id="@android:id/background">
<shape>
<solid android:color="@color/white" />
</shape>
</item>
<item android:id="@android:id/progress">
<clip>
<shape>
<solid android:color="@color/black" />
</shape>
</clip>
</item>
and set the clipDrawable's alpha to be 0.5. But it turns out the completed (left) part of the progress bar is not transparent since the background is not transparent.
Is there a way to achieve my goal?