Android won't display colors with transparency

colors with transparancy are not working in my ionic android app.

while this works:

background-color: #cb003a;

this won’t work:

background-color: #cb003aa4;

It will just be a completely transparent div.

I only have this problem on in the android app on my device, It works fine when serving it in the browser.

Can android show transparent colors?

yes, Android can show transparent colors, try like this

  background-color: rgba(203, 0, 58, 0.64) !important;

Thanks that seems to work!

1 Like