| <?xml version="1.0" encoding="utf-8"?><!-- |
| Copyright (C) 2004-2016 Savoir-faire Linux Inc. |
| |
| Author: Alexandre Lision <alexandre.lision@savoirfairelinux.com> |
| Author: Adrien BĂ©raud <adrien.beraud@savoirfairelinux.com> |
| |
| This program is free software; you can redistribute it and/or modify |
| it under the terms of the GNU General Public License as published by |
| the Free Software Foundation; either version 3 of the License, or |
| (at your option) any later version. |
| |
| This program is distributed in the hope that it will be useful, |
| but WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| GNU General Public License for more details. |
| |
| You should have received a copy of the GNU General Public License |
| along with this program; if not, write to the Free Software |
| Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
| --> |
| |
| <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" |
| android:fitsSystemWindows="true" |
| android:saveEnabled="false" |
| tools:context=".client.HomeActivity"> |
| |
| <RelativeLayout |
| android:id="@+id/content_frame" |
| android:layout_width="match_parent" |
| android:layout_height="match_parent" |
| android:paddingEnd="0dp" |
| android:paddingStart="@dimen/drawer_content_padding"> |
| |
| <android.support.v7.widget.Toolbar |
| android:id="@+id/main_toolbar" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:layout_alignParentStart="true" |
| android:layout_alignParentTop="true" |
| android:background="@color/color_primary_light" |
| android:elevation="@dimen/toolbar_elevation" |
| android:minHeight="?attr/actionBarSize" |
| android:popupTheme="@style/Theme.AppCompat.Light.NoActionBar" |
| android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar" |
| android:titleTextAppearance="@style/ToolbarTitle" |
| app:contentInsetStart="@dimen/toolbar_content_inset" |
| app:elevation="@dimen/toolbar_elevation" |
| app:titleTextAppearance="@style/ToolbarTitle" /> |
| |
| <LinearLayout |
| android:id="@+id/toolbar_spacer" |
| android:layout_width="match_parent" |
| android:layout_height="72sp" |
| android:layout_below="@+id/main_toolbar" |
| android:background="@color/color_primary_light" |
| android:elevation="@dimen/toolbar_elevation" |
| android:gravity="center_vertical" |
| android:orientation="horizontal" |
| android:paddingEnd="0dp" |
| android:paddingStart="@dimen/toolbar_content_inset" |
| android:visibility="gone"> |
| |
| <TextView |
| android:id="@+id/toolbar_spacer_title" |
| style="@style/ToolbarTitle" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:text="@string/menu_item_accounts" |
| android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar" /> |
| |
| </LinearLayout> |
| |
| <FrameLayout |
| android:id="@+id/main_frame" |
| android:layout_width="match_parent" |
| android:layout_height="match_parent" |
| android:layout_alignParentStart="true" |
| android:layout_below="@+id/toolbar_spacer" |
| android:orientation="vertical" /> |
| |
| <android.support.design.widget.FloatingActionButton |
| android:id="@+id/action_button" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_alignBottom="@+id/toolbar_spacer" |
| android:layout_alignParentStart="true" |
| android:layout_marginBottom="@dimen/action_button_bpadding" |
| android:layout_marginStart="@dimen/action_button_lpadding" |
| android:adjustViewBounds="false" |
| android:baselineAlignBottom="false" |
| android:visibility="gone" |
| app:elevation="6dp" |
| app:fabSize="mini" |
| app:pressedTranslationZ="12dp" |
| app:rippleColor="@android:color/white" /> |
| |
| </RelativeLayout> |
| |
| <android.support.design.widget.NavigationView |
| android:id="@+id/left_drawer" |
| android:layout_width="wrap_content" |
| android:layout_height="match_parent" |
| android:layout_gravity="start" |
| android:fitsSystemWindows="true" |
| android:theme="@style/AppThemeBase" |
| android:windowBackground="@color/white" |
| app:itemTextColor="?android:textColorPrimary"> |
| |
| <FrameLayout |
| android:id="@+id/navigation_container" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" /> |
| |
| </android.support.design.widget.NavigationView> |
| |
| </android.support.v4.widget.DrawerLayout> |