blob: f5ac8d7d6d1bb494839fe73e22b9678a5343c655 [file] [log] [blame]
Alexandre Lisionbdb5f472016-11-11 15:59:50 -05001<?xml version="1.0" encoding="utf-8"?>
2
Adrien Béraud8bc95102018-08-25 22:34:51 -04003<androidx.core.widget.NestedScrollView xmlns:android="http://schemas.android.com/apk/res/android"
Alexandre Lisionbdb5f472016-11-11 15:59:50 -05004 xmlns:app="http://schemas.android.com/apk/res-auto"
5 xmlns:tools="http://schemas.android.com/tools"
6 android:layout_width="match_parent"
7 android:layout_height="wrap_content"
8 android:theme="@style/AppThemeBase">
9
10 <LinearLayout
11 android:layout_width="match_parent"
12 android:layout_height="wrap_content"
13 android:orientation="vertical">
14
15 <RelativeLayout
16 android:layout_width="match_parent"
17 android:layout_height="wrap_content"
18 android:background="@color/color_primary_dark"
Alexandre Lision44f96932016-11-11 16:02:33 -050019
Alexandre Lisionbdb5f472016-11-11 15:59:50 -050020 android:paddingTop="30dp"
21 android:theme="@style/MenuHeader">
22
23 <RelativeLayout
24 android:id="@+id/profile_container"
25 android:layout_width="match_parent"
26 android:layout_height="wrap_content">
27
28 <ImageView
29 android:id="@+id/user_photo"
30 android:layout_width="80dp"
31 android:layout_height="80dp"
32 android:layout_alignParentTop="true"
33 android:layout_centerHorizontal="true"
Adrien Béraud5f8c3f72018-03-09 14:49:39 -050034 tools:src="@drawable/ic_contact_picture_fallback" />
Alexandre Lisionbdb5f472016-11-11 15:59:50 -050035
36 <View
37 android:id="@+id/anchor"
38 android:layout_width="20dp"
39 android:layout_height="20dp"
Adrien Béraud378c3862018-08-25 19:05:06 -040040 android:layout_alignBottom="@id/user_photo"
Alexandre Lisionbdb5f472016-11-11 15:59:50 -050041 android:layout_centerHorizontal="true" />
42
Adrien Béraud8bc95102018-08-25 22:34:51 -040043 <com.google.android.material.floatingactionbutton.FloatingActionButton
Alexandre Lisionbdb5f472016-11-11 15:59:50 -050044 android:layout_width="wrap_content"
45 android:layout_height="wrap_content"
46 android:layout_alignTop="@+id/anchor"
47 android:layout_toEndOf="@+id/anchor"
Alexandre Lisionbdb5f472016-11-11 15:59:50 -050048 app:backgroundTint="@color/transparent_light"
Pierre Duchemina5529292017-12-18 17:25:54 -050049 app:fabSize="mini"
50 app:srcCompat="@drawable/ic_action_edit" />
Alexandre Lisionbdb5f472016-11-11 15:59:50 -050051
Alexandre Lisionbdb5f472016-11-11 15:59:50 -050052 </RelativeLayout>
53
Alexandre Lision44f96932016-11-11 16:02:33 -050054
55 <RelativeLayout
Alexandre Lisionbdb5f472016-11-11 15:59:50 -050056 android:id="@+id/account_selection"
Alexandre Lision44f96932016-11-11 16:02:33 -050057 android:layout_width="match_parent"
Alexandre Lisionbdb5f472016-11-11 15:59:50 -050058 android:layout_height="wrap_content"
59 android:layout_alignParentEnd="true"
Alexandre Lisionbdb5f472016-11-11 15:59:50 -050060 android:layout_alignParentStart="true"
61 android:layout_below="@+id/profile_container"
62 android:layout_toEndOf="@+id/profile_container"
Alexandre Lision44f96932016-11-11 16:02:33 -050063 android:background="?attr/selectableItemBackground"
Pierre Duchemina5529292017-12-18 17:25:54 -050064 android:clickable="true"
65 android:focusable="true">
Alexandre Lisionbdb5f472016-11-11 15:59:50 -050066
Alexandre Lision44f96932016-11-11 16:02:33 -050067 <include layout="@layout/item_account_selected" />
68
69 </RelativeLayout>
70
Adrien Béraud8bc95102018-08-25 22:34:51 -040071 <androidx.appcompat.widget.AppCompatButton
Alexandre Lisionbdb5f472016-11-11 15:59:50 -050072 android:id="@+id/addaccount_btn"
73 style="@style/Widget.AppCompat.Button.Borderless"
74 android:layout_width="wrap_content"
75 android:layout_height="72dp"
76 android:layout_alignParentEnd="true"
Alexandre Lisionbdb5f472016-11-11 15:59:50 -050077 android:layout_alignParentStart="true"
78 android:layout_below="@+id/profile_container"
Alexandre Lision44f96932016-11-11 16:02:33 -050079 android:layout_toEndOf="@+id/profile_container"
Alexandre Lision44f96932016-11-11 16:02:33 -050080 android:gravity="center"
Alexandre Lisionbdb5f472016-11-11 15:59:50 -050081 android:text="@string/action_create"
82 android:visibility="gone" />
Alexandre Lision44f96932016-11-11 16:02:33 -050083
Alexandre Lisionbdb5f472016-11-11 15:59:50 -050084 </RelativeLayout>
85
86 <FrameLayout
87 android:layout_width="match_parent"
88 android:layout_height="wrap_content"
89 android:paddingTop="8dp">
90
Adrien Béraud8bc95102018-08-25 22:34:51 -040091 <androidx.recyclerview.widget.RecyclerView
Alexandre Lisionbdb5f472016-11-11 15:59:50 -050092 android:id="@+id/drawer_menu"
93 android:layout_width="match_parent"
94 android:layout_height="wrap_content"
95 android:nestedScrollingEnabled="false"
96 tools:targetApi="lollipop" />
97
Adrien Béraud8bc95102018-08-25 22:34:51 -040098 <androidx.recyclerview.widget.RecyclerView
Alexandre Lision44f96932016-11-11 16:02:33 -050099 android:id="@+id/drawer_accounts"
100 android:layout_width="match_parent"
101 android:layout_height="wrap_content"
102 android:nestedScrollingEnabled="false"
103 tools:targetApi="lollipop" />
104
Alexandre Lisionbdb5f472016-11-11 15:59:50 -0500105 </FrameLayout>
106
107 </LinearLayout>
Adrien Béraud8bc95102018-08-25 22:34:51 -0400108</androidx.core.widget.NestedScrollView>
Alexandre Lisionbdb5f472016-11-11 15:59:50 -0500109
110