如果在Lollipop中的主题中将
android:windowTranslucentNavigation
设置为true
,则导航栏不会像KitKat中那样完全半透明。相反,它是一个深色半透明背景。这里有没有人知道该背景的alpha值是多少?android:windowTranslucentNavigation
设置为true
,则导航栏不会像KitKat中那样完全半透明。相反,它是一个深色半透明背景。这里有没有人知道该背景的alpha值是多少?android:windowTranslucentNavigation=true
时,navBar的alpha为黑色的40%。#66000000
以下是我计算该值的步骤:
(102,0,0,0)
,十六进制为#66000000
。