blob: 3f3120c76a0cabb8c03b4a24a9619743ae2ed15a [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"
Adrien Béraud91f88742019-09-09 00:46:46 -04007 android:layout_height="wrap_content">
Alexandre Lisionbdb5f472016-11-11 15:59:50 -05008
9 <LinearLayout
10 android:layout_width="match_parent"
11 android:layout_height="wrap_content"
12 android:orientation="vertical">
13
14 <RelativeLayout
15 android:layout_width="match_parent"
16 android:layout_height="wrap_content"
17 android:background="@color/color_primary_dark"
Alexandre Lisionbdb5f472016-11-11 15:59:50 -050018 android:paddingTop="30dp"
19 android:theme="@style/MenuHeader">
20
21 <RelativeLayout
22 android:id="@+id/profile_container"
23 android:layout_width="match_parent"
24 android:layout_height="wrap_content">
25
26 <ImageView
27 android:id="@+id/user_photo"
28 android:layout_width="80dp"
29 android:layout_height="80dp"
30 android:layout_alignParentTop="true"
31 android:layout_centerHorizontal="true"
Adrien Béraud5f8c3f72018-03-09 14:49:39 -050032 tools:src="@drawable/ic_contact_picture_fallback" />
Alexandre Lisionbdb5f472016-11-11 15:59:50 -050033
34 <View
35 android:id="@+id/anchor"
36 android:layout_width="20dp"
37 android:layout_height="20dp"
Adrien Béraud378c3862018-08-25 19:05:06 -040038 android:layout_alignBottom="@id/user_photo"
Alexandre Lisionbdb5f472016-11-11 15:59:50 -050039 android:layout_centerHorizontal="true" />
40
Adrien Béraud8bc95102018-08-25 22:34:51 -040041 <com.google.android.material.floatingactionbutton.FloatingActionButton
Adrien Béraudc8d8a252019-02-13 22:09:45 -050042 android:id="@+id/user_profile_edit"
Alexandre Lisionbdb5f472016-11-11 15:59:50 -050043 android:layout_width="wrap_content"
44 android:layout_height="wrap_content"
45 android:layout_alignTop="@+id/anchor"
46 android:layout_toEndOf="@+id/anchor"
Alexandre Lisionbdb5f472016-11-11 15:59:50 -050047 app:backgroundTint="@color/transparent_light"
Pierre Duchemina5529292017-12-18 17:25:54 -050048 app:fabSize="mini"
Adrien Béraud91f88742019-09-09 00:46:46 -040049 app:srcCompat="@drawable/baseline_edit_24"/>
Alexandre Lisionbdb5f472016-11-11 15:59:50 -050050
Alexandre Lisionbdb5f472016-11-11 15:59:50 -050051 </RelativeLayout>
52
Alexandre Lision44f96932016-11-11 16:02:33 -050053
54 <RelativeLayout
Alexandre Lisionbdb5f472016-11-11 15:59:50 -050055 android:id="@+id/account_selection"
Alexandre Lision44f96932016-11-11 16:02:33 -050056 android:layout_width="match_parent"
Alexandre Lisionbdb5f472016-11-11 15:59:50 -050057 android:layout_height="wrap_content"
58 android:layout_alignParentEnd="true"
Alexandre Lisionbdb5f472016-11-11 15:59:50 -050059 android:layout_alignParentStart="true"
60 android:layout_below="@+id/profile_container"
61 android:layout_toEndOf="@+id/profile_container"
Alexandre Lision44f96932016-11-11 16:02:33 -050062 android:background="?attr/selectableItemBackground"
Pierre Duchemina5529292017-12-18 17:25:54 -050063 android:clickable="true"
64 android:focusable="true">
Alexandre Lisionbdb5f472016-11-11 15:59:50 -050065
Alexandre Lision44f96932016-11-11 16:02:33 -050066 <include layout="@layout/item_account_selected" />
67
68 </RelativeLayout>
69
Adrien Béraud91f88742019-09-09 00:46:46 -040070 <com.google.android.material.button.MaterialButton
Alexandre Lisionbdb5f472016-11-11 15:59:50 -050071 android:id="@+id/addaccount_btn"
Adrien Béraud91f88742019-09-09 00:46:46 -040072 style="@style/Widget.MaterialComponents.Button"
Alexandre Lisionbdb5f472016-11-11 15:59:50 -050073 android:layout_width="wrap_content"
74 android:layout_height="72dp"
75 android:layout_alignParentEnd="true"
Alexandre Lisionbdb5f472016-11-11 15:59:50 -050076 android:layout_alignParentStart="true"
77 android:layout_below="@+id/profile_container"
Alexandre Lision44f96932016-11-11 16:02:33 -050078 android:layout_toEndOf="@+id/profile_container"
Alexandre Lision44f96932016-11-11 16:02:33 -050079 android:gravity="center"
Alexandre Lisionbdb5f472016-11-11 15:59:50 -050080 android:text="@string/action_create"
Adrien Béraud91f88742019-09-09 00:46:46 -040081 android:visibility="gone"
82 app:backgroundTint="@color/transparent"/>
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"
Adrien Béraud91f88742019-09-09 00:46:46 -040096 tools:listitem="@layout/item_menu" />
Alexandre Lisionbdb5f472016-11-11 15:59:50 -050097
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"
Adrien Béraud91f88742019-09-09 00:46:46 -0400103 tools:listitem="@layout/item_account" />
Alexandre Lision44f96932016-11-11 16:02:33 -0500104
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