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:

  1. i made screenshot presented below
  2. then open in gimp image editor , take rgb values of each color
  3. white (255,255,255), white under navbar (153,153,153)
  4. 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

enter image description here


Comments

Popular posts from this blog

javascript - Slick Slider width recalculation -

jsf - PrimeFaces Datatable - What is f:facet actually doing? -

angular2 services - Angular 2 RC 4 Http post not firing -