Debian Codegraph @

templates/activities/NavigationDrawerActivity/root/res/layout/activity_drawer.xml.ftl

raw
1 <!-- 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. -->
2 <android.support.v4.widget.DrawerLayout
3 xmlns:android="http://schemas.android.com/apk/res/android"
4 xmlns:tools="http://schemas.android.com/tools"
5 android:id="@+id/drawer_layout"
6 android:layout_width="match_parent"
7 android:layout_height="match_parent"
8 tools:context="${relativePackage}.${activityClass}">
9
10 <!-- As the main content view, the view below consumes the entire
11 space available using match_parent in both dimensions. -->
12 <FrameLayout
13 android:id="@+id/container"
14 android:layout_width="match_parent"
15 android:layout_height="match_parent" />
16
17 <!-- The drawer is given a fixed width in dp and extends the full height of
18 the container. -->
19 <fragment android:id="@+id/navigation_drawer"
20 android:layout_width="@dimen/navigation_drawer_width"
21 android:layout_height="match_parent"
22 android:layout_gravity="<#if buildApi gte 17>start<#else>left</#if>"
23 android:name="${packageName}.NavigationDrawerFragment"
24 tools:layout="@layout/${navigationDrawerLayout}" />
25
26 </android.support.v4.widget.DrawerLayout>