diff options
author | cyberta <cyberta@riseup.net> | 2018-03-06 10:08:49 -0800 |
---|---|---|
committer | cyberta <cyberta@riseup.net> | 2018-03-06 10:08:49 -0800 |
commit | a95567b4bbb2319636a79cc5e8d6a7921df9f4d1 (patch) | |
tree | 7d5c7c36b141aa98e909f6b99baed769de5cf923 /app/src/main/res/layout/a_main.xml | |
parent | fda23fc8c5aa916bce4ce985fcdf0aa08b21f1e6 (diff) | |
parent | 54e95a61bc553d985f6c55823da20985b6103aa0 (diff) |
Merge branch 'cleanup' into 'master'
cleanup - rename layout files
See merge request leap/bitmask_android!64
Diffstat (limited to 'app/src/main/res/layout/a_main.xml')
-rw-r--r-- | app/src/main/res/layout/a_main.xml | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/app/src/main/res/layout/a_main.xml b/app/src/main/res/layout/a_main.xml new file mode 100644 index 00000000..bed05d18 --- /dev/null +++ b/app/src/main/res/layout/a_main.xml @@ -0,0 +1,42 @@ +<!-- 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:app="http://schemas.android.com/apk/res-auto" + xmlns:tools="http://schemas.android.com/tools" + android:id="@+id/drawer_layout" + android:layout_width="match_parent" + android:layout_height="match_parent" + tools:context="se.leap.bitmaskclient.MainActivity"> + + + <!-- As the main content view, the view below consumes the entire + space available using match_parent in both dimensions. --> + <LinearLayout + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="vertical"> + + <android.support.v7.widget.Toolbar + android:id="@+id/toolbar" + android:minHeight="?attr/actionBarSize" + android:layout_width="match_parent" + android:layout_height="wrap_content" + app:titleTextColor="@android:color/white" + android:background="?attr/colorPrimary"> + </android.support.v7.widget.Toolbar> + + <FrameLayout + android:id="@+id/container" + android:layout_width="match_parent" + android:layout_height="match_parent" /> + </LinearLayout> + <!-- 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="se.leap.bitmaskclient.drawer.NavigationDrawerFragment" + android:layout_width="@dimen/navigation_drawer_width" + android:layout_height="match_parent" + android:layout_gravity="start" + tools:layout="@layout/f_drawer_main" /> + +</android.support.v4.widget.DrawerLayout> |