If you set android:windowTranslucentNavigation
to true
in your theme in Lollipop the navigation bar won't be fully translucent like in KitKat. Instead it's a dark semi-transparant background. Does anyone here know what the alpha value is of that background?
I've made some test with navigation bar and found that alpha of navBar when android:windowTranslucentNavigation = true
is 40% of black color.
So color in hex would be: #66000000
Here is steps how I calculated this value:
Then I calculate as next: 255 is 100% 153 is x x = 153 * 100 / 255 = 60%
So I calculated invert value of alpha channel, the true value of alpha channel is 100 - 60 = 40%
ARGB value of 40% is (102,0,0,0)
in hex it's #66000000