fix toolbar is overlaid on ni-co-bar
add fitsSystemWindows and set its value to true
Change-Id: I03acb5ac1c1e6dae622563d1629175b4e1470913
diff --git a/res/layout/gallery_main.xml b/res/layout/gallery_main.xml
old mode 100644
new mode 100755
index 8aa2c07..3c24809
--- a/res/layout/gallery_main.xml
+++ b/res/layout/gallery_main.xml
@@ -31,7 +31,8 @@
<android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/drawerLayout"
android:layout_width="match_parent"
- android:layout_height="match_parent" >
+ android:layout_height="match_parent"
+ android:fitsSystemWindows="true">
<!-- MAIN CONTENT -->
diff --git a/res/layout/toolbar.xml b/res/layout/toolbar.xml
old mode 100644
new mode 100755
index 054d97c..dc8c60a
--- a/res/layout/toolbar.xml
+++ b/res/layout/toolbar.xml
@@ -30,8 +30,7 @@
<Toolbar xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
- android:layout_height="@dimen/toolbar_height"
- android:paddingTop="26dp"
+ android:layout_height="?android:attr/actionBarSize"
android:background="@color/toolbar_theme"
android:elevation="4dp"
android:theme="@style/ToolbarTheme"