developing_android developing_android - 11 months ago 82
Android Question

Translucent navigation bar

I want to have the content of my layout being displayed under the navigation bar (also called translucent navigation bar). After reading on the internet, it says all you have to do is add this 2 items to style applied to the activity:

<item name="android:navigationBarColor">@android:color/transparent</item>
<item name="android:windowTranslucentNavigation">true</item>

The result is, that the navigation bar is light gray and not transparent. How do all the people solve this ?

Answer Source

Problem was the attribute


in the root view of my layout (in this time CoordinatorLayout). This attribute prevents the content of the layout to draw behind the status and navigation bar.