mirror of
https://github.com/wulkanowy/wulkanowy.git
synced 2024-09-21 12:29:08 -05:00
27 lines
1.3 KiB
XML
27 lines
1.3 KiB
XML
|
<!-- A DrawerLayout is intended to be used as the top-level content view using match_parent for both width and height to consume the full space available. -->
|
||
|
<android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||
|
xmlns:tools="http://schemas.android.com/tools"
|
||
|
android:id="@+id/drawer_layout"
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="match_parent"
|
||
|
tools:context="io.github.wulkanowy.activity.dashboard.DashboardActivity">
|
||
|
|
||
|
<!-- As the main content view, the view below consumes the entire
|
||
|
space available using match_parent in both dimensions. -->
|
||
|
<FrameLayout
|
||
|
android:id="@+id/container"
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="match_parent" />
|
||
|
|
||
|
<!-- The drawer is given a fixed width in dp and extends the full height of
|
||
|
the container. -->
|
||
|
<fragment
|
||
|
android:id="@+id/navigation_drawer"
|
||
|
android:name="io.github.wulkanowy.activity.dashboard.NavigationDrawerFragment"
|
||
|
android:layout_width="@dimen/navigation_drawer_width"
|
||
|
android:layout_height="match_parent"
|
||
|
android:layout_gravity="start"
|
||
|
tools:layout="@layout/drawer_dashboard" />
|
||
|
|
||
|
</android.support.v4.widget.DrawerLayout>
|