android - Default Alpha value of navigation bar in Lollipop -
if set android:windowtranslucentnavigation
true
in theme in lollipop navigation bar won't translucent in kitkat. instead it's dark semi-transparant background. here know alpha value of background?
i've made test navigation bar , found alpha of navbar when android:windowtranslucentnavigation = true
40% of black color.
so color in hex be: #66000000
here steps how calculated value:
- i made screenshot presented below
- then open in gimp image editor , take rgb values of each color
- white (255,255,255), white under navbar (153,153,153)
- grey (150,150,150), grey under navbar (90,90,90)
then calculate next: 255 100% 153 x x = 153 * 100 / 255 = 60%
so calculated invert value of alpha channel, true value of alpha channel 100 - 60 = 40%
argb value of 40% (102,0,0,0)
in hex it's #66000000
Comments
Post a Comment