blob: 67d25c5689553703af0f6b0cbea9ab01fe909d9f [file] [log] [blame]
<?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"
tools:context=".client.HomeActivity">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<android.support.v7.widget.Toolbar
android:id="@+id/main_toolbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:layout_alignParentTop="true"
android:background="@color/color_primary_light"
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"
android:elevation="@dimen/toolbar_elevation"
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:orientation="horizontal"
android:elevation="@dimen/toolbar_elevation"
android:layout_below="@+id/main_toolbar"
android:background="@color/color_primary_light"
android:visibility="visible"
android:paddingLeft="@dimen/toolbar_content_inset"
android:gravity="center_vertical">
<TextView
android:id="@+id/toolbar_spacer_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/menu_item_accounts"
style="@style/ToolbarTitle"
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_alignParentLeft="true"
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_alignParentLeft="true"
android:layout_alignParentStart="true"
android:layout_marginBottom="@dimen/action_button_bpadding"
android:layout_marginLeft="@dimen/action_button_lpadding"
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">
</android.support.design.widget.FloatingActionButton>
</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"
app:menu="@menu/drawer" />
</android.support.v4.widget.DrawerLayout>