Android Theme, Style, Attribute Translucent Navigation and Status Bars (API 19+)

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Extensions
> Step 2: And Like the video. BONUS: You can also share it!

Example

The navigation bar (at the bottom of the screen) can be transparent. Here is the way to achieve it.

<style name="AppTheme" parent="Theme.AppCompat">
    <item name="android:windowTranslucentNavigation">true</item>
</style>

The Status Bar (top of the screen) can be made transparent, by applying this attribute to the style:

<style name="AppTheme" parent="Theme.AppCompat">
    <item name="android:windowTranslucentStatus">true</item>
</style>


Got any Android Question?