Is there a transparent color code?

34.8k Views Asked by At

I'm looking for my actionBar to be transparent. I only have searchView in it and it's in my MapActivity, I just want the searchView and the "back pressed" buttons to be visible. Which transparency # code do I use to fill into the following:

 getSupportActionBar().setBackgroundDrawable(new ColorDrawable(parseColor("#")));  
2

There are 2 best solutions below

1
On BEST ANSWER

Android supports the #AARRGGBB color format.

A = alpha, R = Red, G = Green, B = Blue

To make some View transparent use #00000000.
First 00 are alpha.

1
On

You can also try this #ffffff00