Adrien Béraud | 433a859 | 2015-06-17 16:25:44 -0400 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?><!-- |
Adrien Béraud | ec528bb | 2016-01-14 16:52:51 -0500 | [diff] [blame] | 2 | Copyright (C) 2004-2016 Savoir-faire Linux Inc. |
Adrien Béraud | 04d822c | 2015-04-02 17:44:36 -0400 | [diff] [blame] | 3 | |
Adrien Béraud | 433a859 | 2015-06-17 16:25:44 -0400 | [diff] [blame] | 4 | Author: Alexandre Lision <alexandre.lision@savoirfairelinux.com> |
| 5 | Author: Adrien Béraud <adrien.beraud@savoirfairelinux.com> |
| 6 | |
Adrien Béraud | 04d822c | 2015-04-02 17:44:36 -0400 | [diff] [blame] | 7 | This program is free software; you can redistribute it and/or modify |
| 8 | it under the terms of the GNU General Public License as published by |
| 9 | the Free Software Foundation; either version 3 of the License, or |
| 10 | (at your option) any later version. |
| 11 | |
| 12 | This program is distributed in the hope that it will be useful, |
| 13 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 15 | GNU General Public License for more details. |
| 16 | |
| 17 | You should have received a copy of the GNU General Public License |
| 18 | along with this program; if not, write to the Free Software |
| 19 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
Adrien Béraud | 04d822c | 2015-04-02 17:44:36 -0400 | [diff] [blame] | 20 | --> |
| 21 | |
| 22 | <android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android" |
Adrien Béraud | 433a859 | 2015-06-17 16:25:44 -0400 | [diff] [blame] | 23 | xmlns:app="http://schemas.android.com/apk/res-auto" |
Adrien Béraud | b179bab | 2015-10-08 12:04:22 -0400 | [diff] [blame] | 24 | xmlns:tools="http://schemas.android.com/tools" |
Adrien Béraud | 04d822c | 2015-04-02 17:44:36 -0400 | [diff] [blame] | 25 | android:id="@+id/drawer_layout" |
| 26 | android:layout_width="match_parent" |
Adrien Béraud | 433a859 | 2015-06-17 16:25:44 -0400 | [diff] [blame] | 27 | android:layout_height="match_parent" |
Adrien Béraud | b179bab | 2015-10-08 12:04:22 -0400 | [diff] [blame] | 28 | android:fitsSystemWindows="true" |
Aline Bonnet | f6c2a40 | 2016-12-14 15:25:40 -0500 | [diff] [blame] | 29 | android:saveEnabled="false" |
Adrien Béraud | b179bab | 2015-10-08 12:04:22 -0400 | [diff] [blame] | 30 | tools:context=".client.HomeActivity"> |
Adrien Béraud | 04d822c | 2015-04-02 17:44:36 -0400 | [diff] [blame] | 31 | |
Adrien Béraud | dde513c | 2015-10-22 11:21:52 -0400 | [diff] [blame] | 32 | <RelativeLayout |
Aline Bonnet | f6c2a40 | 2016-12-14 15:25:40 -0500 | [diff] [blame] | 33 | android:id="@+id/content_frame" |
Adrien Béraud | dde513c | 2015-10-22 11:21:52 -0400 | [diff] [blame] | 34 | android:layout_width="match_parent" |
Aline Bonnet | f6c2a40 | 2016-12-14 15:25:40 -0500 | [diff] [blame] | 35 | android:layout_height="match_parent" |
| 36 | android:paddingLeft="@dimen/drawer_content_padding"> |
Adrien Béraud | dde513c | 2015-10-22 11:21:52 -0400 | [diff] [blame] | 37 | |
| 38 | <android.support.v7.widget.Toolbar |
| 39 | android:id="@+id/main_toolbar" |
Adrien Béraud | 04d822c | 2015-04-02 17:44:36 -0400 | [diff] [blame] | 40 | android:layout_width="match_parent" |
Adrien Béraud | dde513c | 2015-10-22 11:21:52 -0400 | [diff] [blame] | 41 | android:layout_height="wrap_content" |
| 42 | android:layout_alignParentLeft="true" |
| 43 | android:layout_alignParentStart="true" |
| 44 | android:layout_alignParentTop="true" |
Alexandre Lision | 0b16eea | 2016-05-27 15:24:54 -0400 | [diff] [blame] | 45 | android:background="@color/color_primary_light" |
Alexandre Lision | bdb5f47 | 2016-11-11 15:59:50 -0500 | [diff] [blame] | 46 | android:elevation="@dimen/toolbar_elevation" |
Adrien Béraud | dde513c | 2015-10-22 11:21:52 -0400 | [diff] [blame] | 47 | android:minHeight="?attr/actionBarSize" |
| 48 | android:popupTheme="@style/Theme.AppCompat.Light.NoActionBar" |
| 49 | android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar" |
Alexandre Lision | 0b16eea | 2016-05-27 15:24:54 -0400 | [diff] [blame] | 50 | android:titleTextAppearance="@style/ToolbarTitle" |
| 51 | app:contentInsetStart="@dimen/toolbar_content_inset" |
Alexandre Lision | 0b16eea | 2016-05-27 15:24:54 -0400 | [diff] [blame] | 52 | app:elevation="@dimen/toolbar_elevation" |
Alexandre Lision | bdb5f47 | 2016-11-11 15:59:50 -0500 | [diff] [blame] | 53 | app:titleTextAppearance="@style/ToolbarTitle" /> |
Alexandre Lision | 0b16eea | 2016-05-27 15:24:54 -0400 | [diff] [blame] | 54 | |
| 55 | <LinearLayout |
| 56 | android:id="@+id/toolbar_spacer" |
| 57 | android:layout_width="match_parent" |
| 58 | android:layout_height="72sp" |
Alexandre Lision | 0b16eea | 2016-05-27 15:24:54 -0400 | [diff] [blame] | 59 | android:layout_below="@+id/main_toolbar" |
| 60 | android:background="@color/color_primary_light" |
Alexandre Lision | bdb5f47 | 2016-11-11 15:59:50 -0500 | [diff] [blame] | 61 | android:elevation="@dimen/toolbar_elevation" |
| 62 | android:gravity="center_vertical" |
| 63 | android:orientation="horizontal" |
Alexandre Lision | 0b16eea | 2016-05-27 15:24:54 -0400 | [diff] [blame] | 64 | android:paddingLeft="@dimen/toolbar_content_inset" |
Alexandre Lision | bdb5f47 | 2016-11-11 15:59:50 -0500 | [diff] [blame] | 65 | android:visibility="gone"> |
Alexandre Lision | 0b16eea | 2016-05-27 15:24:54 -0400 | [diff] [blame] | 66 | |
Alexandre Lision | bdb5f47 | 2016-11-11 15:59:50 -0500 | [diff] [blame] | 67 | <TextView |
| 68 | android:id="@+id/toolbar_spacer_title" |
| 69 | style="@style/ToolbarTitle" |
| 70 | android:layout_width="wrap_content" |
| 71 | android:layout_height="wrap_content" |
| 72 | android:text="@string/menu_item_accounts" |
| 73 | android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar" /> |
Alexandre Lision | 0b16eea | 2016-05-27 15:24:54 -0400 | [diff] [blame] | 74 | |
Alexandre Lision | bdb5f47 | 2016-11-11 15:59:50 -0500 | [diff] [blame] | 75 | </LinearLayout> |
Adrien Béraud | b179bab | 2015-10-08 12:04:22 -0400 | [diff] [blame] | 76 | |
Adrien Béraud | dde513c | 2015-10-22 11:21:52 -0400 | [diff] [blame] | 77 | <FrameLayout |
| 78 | android:id="@+id/main_frame" |
| 79 | android:layout_width="match_parent" |
| 80 | android:layout_height="match_parent" |
| 81 | android:layout_alignParentLeft="true" |
| 82 | android:layout_alignParentStart="true" |
Alexandre Lision | 0b16eea | 2016-05-27 15:24:54 -0400 | [diff] [blame] | 83 | android:layout_below="@+id/toolbar_spacer" |
Adrien Béraud | dde513c | 2015-10-22 11:21:52 -0400 | [diff] [blame] | 84 | android:orientation="vertical" /> |
Adrien Béraud | 433a859 | 2015-06-17 16:25:44 -0400 | [diff] [blame] | 85 | |
Adrien Béraud | dde513c | 2015-10-22 11:21:52 -0400 | [diff] [blame] | 86 | <android.support.design.widget.FloatingActionButton |
| 87 | android:id="@+id/action_button" |
| 88 | android:layout_width="wrap_content" |
| 89 | android:layout_height="wrap_content" |
Alexandre Lision | 0b16eea | 2016-05-27 15:24:54 -0400 | [diff] [blame] | 90 | android:layout_alignBottom="@+id/toolbar_spacer" |
Adrien Béraud | dde513c | 2015-10-22 11:21:52 -0400 | [diff] [blame] | 91 | android:layout_alignParentLeft="true" |
| 92 | android:layout_alignParentStart="true" |
| 93 | android:layout_marginBottom="@dimen/action_button_bpadding" |
Adrien Béraud | bd99d6a | 2015-11-23 16:04:49 -0500 | [diff] [blame] | 94 | android:layout_marginLeft="@dimen/action_button_lpadding" |
Adrien Béraud | 7b6b20a | 2016-03-17 19:19:51 -0400 | [diff] [blame] | 95 | android:layout_marginStart="@dimen/action_button_lpadding" |
Adrien Béraud | dde513c | 2015-10-22 11:21:52 -0400 | [diff] [blame] | 96 | android:adjustViewBounds="false" |
| 97 | android:baselineAlignBottom="false" |
Adrien Béraud | 7b6b20a | 2016-03-17 19:19:51 -0400 | [diff] [blame] | 98 | android:visibility="gone" |
Adrien Béraud | dde513c | 2015-10-22 11:21:52 -0400 | [diff] [blame] | 99 | app:elevation="6dp" |
Adrien Béraud | b968c2e | 2015-11-20 12:08:31 -0500 | [diff] [blame] | 100 | app:fabSize="mini" |
| 101 | app:pressedTranslationZ="12dp" |
Adrien Béraud | 1347b40 | 2016-10-12 16:16:04 -0400 | [diff] [blame] | 102 | app:rippleColor="@android:color/white" /> |
Adrien Béraud | b179bab | 2015-10-08 12:04:22 -0400 | [diff] [blame] | 103 | |
Adrien Béraud | dde513c | 2015-10-22 11:21:52 -0400 | [diff] [blame] | 104 | </RelativeLayout> |
Adrien Béraud | 04d822c | 2015-04-02 17:44:36 -0400 | [diff] [blame] | 105 | |
Adrien Béraud | 433a859 | 2015-06-17 16:25:44 -0400 | [diff] [blame] | 106 | <android.support.design.widget.NavigationView |
Adrien Béraud | 04d822c | 2015-04-02 17:44:36 -0400 | [diff] [blame] | 107 | android:id="@+id/left_drawer" |
Adrien Béraud | 433a859 | 2015-06-17 16:25:44 -0400 | [diff] [blame] | 108 | android:layout_width="wrap_content" |
Adrien Béraud | 04d822c | 2015-04-02 17:44:36 -0400 | [diff] [blame] | 109 | android:layout_height="match_parent" |
| 110 | android:layout_gravity="start" |
Adrien Béraud | 433a859 | 2015-06-17 16:25:44 -0400 | [diff] [blame] | 111 | android:fitsSystemWindows="true" |
| 112 | android:theme="@style/AppThemeBase" |
| 113 | android:windowBackground="@color/white" |
Alexandre Lision | bdb5f47 | 2016-11-11 15:59:50 -0500 | [diff] [blame] | 114 | app:itemTextColor="?android:textColorPrimary"> |
| 115 | |
| 116 | <FrameLayout |
| 117 | android:id="@+id/navigation_container" |
| 118 | android:layout_width="match_parent" |
| 119 | android:layout_height="wrap_content" /> |
| 120 | |
| 121 | </android.support.design.widget.NavigationView> |
Adrien Béraud | 04d822c | 2015-04-02 17:44:36 -0400 | [diff] [blame] | 122 | |
| 123 | </android.support.v4.widget.DrawerLayout> |