Add drawer header
This commit is contained in:
parent
067ce01183
commit
5e2c2668db
@ -18,6 +18,7 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
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>
|
@ -9,7 +9,7 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingTop="@dimen/fragment_padding"
|
||||
android:background="@drawable/gradient_background_reverse">
|
||||
android:background="@drawable/gradient_background">
|
||||
|
||||
<android.support.v7.widget.Toolbar
|
||||
android:id="@+id/toolbar"
|
||||
|
@ -9,7 +9,7 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingTop="@dimen/fragment_padding"
|
||||
android:background="@drawable/gradient_background_reverse">
|
||||
android:background="@drawable/gradient_background">
|
||||
|
||||
<android.support.v7.widget.Toolbar
|
||||
android:id="@+id/toolbar"
|
||||
|
16
app/src/main/res/layout/summary_drawer_header.xml
Normal file
16
app/src/main/res/layout/summary_drawer_header.xml
Normal 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>
|
Loading…
Reference in New Issue
Block a user