Transparent status bar error

I have a translucent problem statusbaronly when opening the application for the first time. Take a look at the screenshot: enter image description here When you open Navigation Drawerthis error appears, but only when you first open the application. When I close the application and start it again, everything works fine.

Here is the XML of the style that I am using that includes a translucent status bar:

<resources>

    <!-- Base application theme. -->
    <style name="TransTheme" parent="android:Theme.Holo.Light">
        <item name="android:windowBackground">@drawable/actionbar_background</item>
        <item name="android:windowTranslucentStatus">true</item>
        <item name="android:windowTranslucentNavigation">true</item>
        <item name="android:fitsSystemWindows">true</item>
        <item name="android:actionBarStyle">@style/ActionBar.GreenStyle</item>
    </style>

    <style name="ActionBar.GreenStyle" parent="@android:style/Widget.Holo.Light.ActionBar.Solid">
        <item name="android:background">@drawable/actionbar_background</item> 
    </style>

</resources>
+3
source share
1 answer

Add android:fitsSystemWindows="true"as an attribute directly to the ListViewdrawer.

-1
source

All Articles