I want to set the transparency of MediaController background and not controls.
I tried using mediaController.setAlpha(0.6f), but it is applying transparency to controls as well like this
I want to set the transparency of MediaController background and not controls.
I tried using mediaController.setAlpha(0.6f), but it is applying transparency to controls as well like this
try setting the background color with a transparent color instead of alpha.
For example, with color hex #99CC00:
In your colors.xml:
Then in your activity:
Or in your layout file:
Found a tricky solution, that worked for me. The idea is to set background color with desired transparency level only for the specific background layout. This will not have an impact on controls or other MediaController views: