Add drawer header

This commit is contained in:
Tanguy Herbron 2018-05-23 08:08:06 +02:00
parent 067ce01183
commit 5e2c2668db
4 changed files with 20 additions and 3 deletions

View File

@ -18,6 +18,7 @@
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_gravity="start" android:layout_gravity="start"
app:menu="@menu/summary_navigation_drawer"/> app:menu="@menu/summary_navigation_drawer"
app:headerLayout="@layout/summary_drawer_header"/>
</android.support.v4.widget.DrawerLayout> </android.support.v4.widget.DrawerLayout>

View File

@ -9,7 +9,7 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:paddingTop="@dimen/fragment_padding" android:paddingTop="@dimen/fragment_padding"
android:background="@drawable/gradient_background_reverse"> android:background="@drawable/gradient_background">
<android.support.v7.widget.Toolbar <android.support.v7.widget.Toolbar
android:id="@+id/toolbar" android:id="@+id/toolbar"

View File

@ -9,7 +9,7 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:paddingTop="@dimen/fragment_padding" android:paddingTop="@dimen/fragment_padding"
android:background="@drawable/gradient_background_reverse"> android:background="@drawable/gradient_background">
<android.support.v7.widget.Toolbar <android.support.v7.widget.Toolbar
android:id="@+id/toolbar" android:id="@+id/toolbar"

View File

@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="192dp"
android:background="@drawable/gradient_background"
android:padding="16dp"
android:orientation="vertical"
android:gravity="bottom">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Moodl"
android:textStyle="bold"/>
</LinearLayout>