android:layout_width
=
"match_parent"
android:layout_height
=
"match_parent"
android:orientation
=
"vertical"
>
<
include
layout
=
"@layout/toolbar"
/>
<
android.support.v4.widget.DrawerLayout
android:id
=
"@+id/drawer_layout"
android:layout_width
=
"match_parent"
android:layout_height
=
"match_parent"
tools:context
=
".MainActivity"
>
<
FrameLayout
android:id
=
"@+id/container"
android:layout_width
=
"match_parent"
android:layout_height
=
"match_parent"
android:background
=
"#fff"
/>
<
View
android:id
=
"@+id/drawer"
android:layout_width
=
"240dp"
android:layout_height
=
"match_parent"
android:layout_gravity
=
"start"
android:background
=
"#fff"
/>
</
android.support.v4.widget.DrawerLayout
>
</
LinearLayout
>
toolbar.xml
<?
xml
version
=
"1.0"
encoding
=
"utf-8"
?>
<
android.support.v7.widget.Toolbar
android:id
=
"@+id/toolbar"
android:layout_width
=
"match_parent"
android:layout_height
=
"wrap_content"
android:minHeight
=
"?attr/actionBarSize"
android:background
=
"?attr/colorPrimary"
>
</
android.support.v7.widget.Toolbar
>