blob: 3392b0310989848845b480f868a928f9c394e095 [file] [log] [blame]
Adrien Béraud433a8592015-06-17 16:25:44 -04001<?xml version="1.0" encoding="utf-8"?><!--
Adrien Bérauddde513c2015-10-22 11:21:52 -04002Copyright (C) 2004-2015 Savoir-faire Linux Inc.
Adrien Béraud04d822c2015-04-02 17:44:36 -04003
Adrien Béraud433a8592015-06-17 16:25:44 -04004Author: Alexandre Lision <alexandre.lision@savoirfairelinux.com>
5Author: Adrien Béraud <adrien.beraud@savoirfairelinux.com>
6
Adrien Béraud04d822c2015-04-02 17:44:36 -04007This program is free software; you can redistribute it and/or modify
8it under the terms of the GNU General Public License as published by
9the Free Software Foundation; either version 3 of the License, or
10(at your option) any later version.
11
12This program is distributed in the hope that it will be useful,
13but WITHOUT ANY WARRANTY; without even the implied warranty of
14MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15GNU General Public License for more details.
16
17You should have received a copy of the GNU General Public License
18along with this program; if not, write to the Free Software
19 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
Adrien Béraud04d822c2015-04-02 17:44:36 -040020-->
21
22<android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
Adrien Béraud433a8592015-06-17 16:25:44 -040023 xmlns:app="http://schemas.android.com/apk/res-auto"
Adrien Béraudb179bab2015-10-08 12:04:22 -040024 xmlns:tools="http://schemas.android.com/tools"
Adrien Béraud04d822c2015-04-02 17:44:36 -040025 android:id="@+id/drawer_layout"
26 android:layout_width="match_parent"
Adrien Béraud433a8592015-06-17 16:25:44 -040027 android:layout_height="match_parent"
Adrien Béraudb179bab2015-10-08 12:04:22 -040028 android:fitsSystemWindows="true"
29 tools:context=".client.HomeActivity">
Adrien Béraud04d822c2015-04-02 17:44:36 -040030
Adrien Bérauddde513c2015-10-22 11:21:52 -040031 <RelativeLayout
32 android:layout_width="match_parent"
33 android:layout_height="match_parent">
34
35 <android.support.v7.widget.Toolbar
36 android:id="@+id/main_toolbar"
Adrien Béraud04d822c2015-04-02 17:44:36 -040037 android:layout_width="match_parent"
Adrien Bérauddde513c2015-10-22 11:21:52 -040038 android:layout_height="wrap_content"
39 android:layout_alignParentLeft="true"
40 android:layout_alignParentStart="true"
41 android:layout_alignParentTop="true"
42 android:background="@color/actionbar"
Adrien Béraud433a8592015-06-17 16:25:44 -040043
Adrien Bérauddde513c2015-10-22 11:21:52 -040044 android:elevation="4dp"
45 android:gravity="bottom"
46 android:longClickable="true"
47 android:minHeight="?attr/actionBarSize"
48 android:popupTheme="@style/Theme.AppCompat.Light.NoActionBar"
49 android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
50 app:contentInsetStart="72dp"
51 app:elevation="4dp"
52 app:popupTheme="@style/Theme.AppCompat.Light.NoActionBar"
53 app:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
54 app:titleMarginBottom="@dimen/action_bar_title_margin_bottom" />
Adrien Béraudb179bab2015-10-08 12:04:22 -040055
Adrien Bérauddde513c2015-10-22 11:21:52 -040056 <FrameLayout
57 android:id="@+id/main_frame"
58 android:layout_width="match_parent"
59 android:layout_height="match_parent"
60 android:layout_alignParentLeft="true"
61 android:layout_alignParentStart="true"
62 android:layout_below="@id/main_toolbar"
63 android:orientation="vertical" />
Adrien Béraud433a8592015-06-17 16:25:44 -040064
Adrien Bérauddde513c2015-10-22 11:21:52 -040065 <android.support.design.widget.FloatingActionButton
66 android:id="@+id/action_button"
67 android:layout_width="wrap_content"
68 android:layout_height="wrap_content"
69 android:layout_alignBottom="@+id/main_toolbar"
70 android:layout_alignParentLeft="true"
71 android:layout_alignParentStart="true"
72 android:layout_marginBottom="@dimen/action_button_bpadding"
73 android:layout_marginLeft="16dp"
74 android:layout_marginStart="16dp"
75 android:adjustViewBounds="false"
76 android:baselineAlignBottom="false"
77 android:elevation="6dp"
78 android:visibility="gone"
79 app:elevation="6dp"
80 app:fabSize="mini" />
Adrien Béraudb179bab2015-10-08 12:04:22 -040081
Adrien Bérauddde513c2015-10-22 11:21:52 -040082 </RelativeLayout>
Adrien Béraud04d822c2015-04-02 17:44:36 -040083
Adrien Béraud433a8592015-06-17 16:25:44 -040084 <android.support.design.widget.NavigationView
Adrien Béraud04d822c2015-04-02 17:44:36 -040085 android:id="@+id/left_drawer"
Adrien Béraud433a8592015-06-17 16:25:44 -040086 android:layout_width="wrap_content"
Adrien Béraud04d822c2015-04-02 17:44:36 -040087 android:layout_height="match_parent"
88 android:layout_gravity="start"
Adrien Béraud433a8592015-06-17 16:25:44 -040089 android:fitsSystemWindows="true"
90 android:theme="@style/AppThemeBase"
91 android:windowBackground="@color/white"
92 app:itemTextColor="?android:textColorPrimary"
93 app:menu="@menu/drawer" />
Adrien Béraud04d822c2015-04-02 17:44:36 -040094
95</android.support.v4.widget.DrawerLayout>