0

In my theme, I set

<style name="AppTheme">
  <item name="android:navigationBarColor">#1affffff</item>
  <item name="android:windowLightNavigationBar">true</item>
  <item name="android:windowTranslucentNavigation">true</item>
  ....
</style>

But if I set android:windowTranslucentNavigation to true, the white color won't be shown, it would be a grey scrim. What I expect is the content can be shown behind navigationbar, statusbar and toolbar, but with a white scrim over these xxxxxbar, how can I make it?

Pineapple
  • 111
  • 1
  • 4

1 Answers1

0

it is like this because your action bar is not over your layout but it is over window background add this line to your current style:

<item name="android:windowActionBarOverlay">true</item>
ygngy
  • 3,630
  • 2
  • 18
  • 29