android - Appcompat 23.2.1 drawer layout with navigation view covered by status bar -


i switched normal light dark appcompat themes daynight , status bar color being drawn on window. changed break configuration?

styles.xml

<style name="appthemedaynight" parent="theme.appcompat.daynight.noactionbar">     <!-- customize theme here. -->     <item name="colorprimary">@color/primary</item>     <item name="colorprimarydark">@color/primary_dark</item>     <item name="coloraccent">@color/accent</item>     <item name="preferencetheme">@style/preferencethemeoverlay</item>     <item name="statusviewstyle">@style/statusviewstyle</item> </style>  <style name="appthemedaynight.noactionbar">     <item name="windowactionbar">false</item>     <item name="windownotitle">true</item> </style>  <style name="apptheme.appbaroverlay" parent="themeoverlay.appcompat.dark.actionbar" />  <style name="apptheme.popupoverlay" parent="themeoverlay.appcompat.light" /> 

styles-v21.xml

    <style name="appthemedaynight.noactionbar">     <item name="android:windowdrawssystembarbackgrounds">true</item>     <!--<item name="android:statusbarcolor">@android:color/transparent</item> -->     <!--<item name="android:windowtranslucentstatus">true</item> -->     <item name="android:windowactionmodeoverlay">true</item> </style>   <style name="appthemedaynight.noactionbar.drawer">     <item name="android:statusbarcolor">@android:color/transparent</item> </style> 

activity_layout.xml

<?xml version="1.0" encoding="utf-8"?> 

<android.support.design.widget.coordinatorlayout     android:id="@+id/coordinator_layout"     android:layout_width="match_parent"     android:layout_height="match_parent">      <android.support.design.widget.appbarlayout         android:layout_width="match_parent"         android:layout_height="wrap_content"         android:theme="@style/apptheme.appbaroverlay">          <android.support.v7.widget.toolbar             android:id="@+id/toolbar"             android:layout_width="match_parent"             android:layout_height="?attr/actionbarsize"             android:background="?attr/colorprimary"             app:popuptheme="@style/apptheme.popupoverlay"             tools:title="timeline"/>      </android.support.design.widget.appbarlayout>      <include layout="@layout/content_twitter" />      <android.support.design.widget.floatingactionbutton         android:id="@+id/fab"         android:layout_width="wrap_content"         android:layout_height="wrap_content"         android:layout_gravity="bottom|end"         android:layout_margin="@dimen/fab_margin"         app:srccompat="@drawable/ic_menu_send" />  </android.support.design.widget.coordinatorlayout>  <!-- navigation drawer --> <android.support.design.widget.navigationview     android:id="@+id/navigation"     android:layout_width="wrap_content"     android:layout_height="match_parent"     android:layout_gravity="start"     app:menu="@menu/activity_main_drawer" /> 

here's screenshot of drawer open navigation view, should drawing on status bar. screenshot

add

 <item name="android:windowcontentoverlay">@null</item> 

to

<style name="appthemedaynight" parent="theme.appcompat.daynight.noactionbar">  

block , try


Comments

Popular posts from this blog

django - (fields.E300) Field defines a relation with model 'AbstractEmailUser' which is either not installed, or is abstract -

matlab - error with cyclic autocorrelation function -

php - Using grpc in Laravel, "Class 'Grpc\ChannelCredentials' not found." -