Alexandre Lision | bdb5f47 | 2016-11-11 15:59:50 -0500 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | |
Adrien Béraud | 8bc9510 | 2018-08-25 22:34:51 -0400 | [diff] [blame] | 3 | <androidx.core.widget.NestedScrollView xmlns:android="http://schemas.android.com/apk/res/android" |
Alexandre Lision | bdb5f47 | 2016-11-11 15:59:50 -0500 | [diff] [blame] | 4 | 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éraud | 91f8874 | 2019-09-09 00:46:46 -0400 | [diff] [blame^] | 7 | android:layout_height="wrap_content"> |
Alexandre Lision | bdb5f47 | 2016-11-11 15:59:50 -0500 | [diff] [blame] | 8 | |
| 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 Lision | bdb5f47 | 2016-11-11 15:59:50 -0500 | [diff] [blame] | 18 | 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éraud | 5f8c3f7 | 2018-03-09 14:49:39 -0500 | [diff] [blame] | 32 | tools:src="@drawable/ic_contact_picture_fallback" /> |
Alexandre Lision | bdb5f47 | 2016-11-11 15:59:50 -0500 | [diff] [blame] | 33 | |
| 34 | <View |
| 35 | android:id="@+id/anchor" |
| 36 | android:layout_width="20dp" |
| 37 | android:layout_height="20dp" |
Adrien Béraud | 378c386 | 2018-08-25 19:05:06 -0400 | [diff] [blame] | 38 | android:layout_alignBottom="@id/user_photo" |
Alexandre Lision | bdb5f47 | 2016-11-11 15:59:50 -0500 | [diff] [blame] | 39 | android:layout_centerHorizontal="true" /> |
| 40 | |
Adrien Béraud | 8bc9510 | 2018-08-25 22:34:51 -0400 | [diff] [blame] | 41 | <com.google.android.material.floatingactionbutton.FloatingActionButton |
Adrien Béraud | c8d8a25 | 2019-02-13 22:09:45 -0500 | [diff] [blame] | 42 | android:id="@+id/user_profile_edit" |
Alexandre Lision | bdb5f47 | 2016-11-11 15:59:50 -0500 | [diff] [blame] | 43 | android:layout_width="wrap_content" |
| 44 | android:layout_height="wrap_content" |
| 45 | android:layout_alignTop="@+id/anchor" |
| 46 | android:layout_toEndOf="@+id/anchor" |
Alexandre Lision | bdb5f47 | 2016-11-11 15:59:50 -0500 | [diff] [blame] | 47 | app:backgroundTint="@color/transparent_light" |
Pierre Duchemin | a552929 | 2017-12-18 17:25:54 -0500 | [diff] [blame] | 48 | app:fabSize="mini" |
Adrien Béraud | 91f8874 | 2019-09-09 00:46:46 -0400 | [diff] [blame^] | 49 | app:srcCompat="@drawable/baseline_edit_24"/> |
Alexandre Lision | bdb5f47 | 2016-11-11 15:59:50 -0500 | [diff] [blame] | 50 | |
Alexandre Lision | bdb5f47 | 2016-11-11 15:59:50 -0500 | [diff] [blame] | 51 | </RelativeLayout> |
| 52 | |
Alexandre Lision | 44f9693 | 2016-11-11 16:02:33 -0500 | [diff] [blame] | 53 | |
| 54 | <RelativeLayout |
Alexandre Lision | bdb5f47 | 2016-11-11 15:59:50 -0500 | [diff] [blame] | 55 | android:id="@+id/account_selection" |
Alexandre Lision | 44f9693 | 2016-11-11 16:02:33 -0500 | [diff] [blame] | 56 | android:layout_width="match_parent" |
Alexandre Lision | bdb5f47 | 2016-11-11 15:59:50 -0500 | [diff] [blame] | 57 | android:layout_height="wrap_content" |
| 58 | android:layout_alignParentEnd="true" |
Alexandre Lision | bdb5f47 | 2016-11-11 15:59:50 -0500 | [diff] [blame] | 59 | android:layout_alignParentStart="true" |
| 60 | android:layout_below="@+id/profile_container" |
| 61 | android:layout_toEndOf="@+id/profile_container" |
Alexandre Lision | 44f9693 | 2016-11-11 16:02:33 -0500 | [diff] [blame] | 62 | android:background="?attr/selectableItemBackground" |
Pierre Duchemin | a552929 | 2017-12-18 17:25:54 -0500 | [diff] [blame] | 63 | android:clickable="true" |
| 64 | android:focusable="true"> |
Alexandre Lision | bdb5f47 | 2016-11-11 15:59:50 -0500 | [diff] [blame] | 65 | |
Alexandre Lision | 44f9693 | 2016-11-11 16:02:33 -0500 | [diff] [blame] | 66 | <include layout="@layout/item_account_selected" /> |
| 67 | |
| 68 | </RelativeLayout> |
| 69 | |
Adrien Béraud | 91f8874 | 2019-09-09 00:46:46 -0400 | [diff] [blame^] | 70 | <com.google.android.material.button.MaterialButton |
Alexandre Lision | bdb5f47 | 2016-11-11 15:59:50 -0500 | [diff] [blame] | 71 | android:id="@+id/addaccount_btn" |
Adrien Béraud | 91f8874 | 2019-09-09 00:46:46 -0400 | [diff] [blame^] | 72 | style="@style/Widget.MaterialComponents.Button" |
Alexandre Lision | bdb5f47 | 2016-11-11 15:59:50 -0500 | [diff] [blame] | 73 | android:layout_width="wrap_content" |
| 74 | android:layout_height="72dp" |
| 75 | android:layout_alignParentEnd="true" |
Alexandre Lision | bdb5f47 | 2016-11-11 15:59:50 -0500 | [diff] [blame] | 76 | android:layout_alignParentStart="true" |
| 77 | android:layout_below="@+id/profile_container" |
Alexandre Lision | 44f9693 | 2016-11-11 16:02:33 -0500 | [diff] [blame] | 78 | android:layout_toEndOf="@+id/profile_container" |
Alexandre Lision | 44f9693 | 2016-11-11 16:02:33 -0500 | [diff] [blame] | 79 | android:gravity="center" |
Alexandre Lision | bdb5f47 | 2016-11-11 15:59:50 -0500 | [diff] [blame] | 80 | android:text="@string/action_create" |
Adrien Béraud | 91f8874 | 2019-09-09 00:46:46 -0400 | [diff] [blame^] | 81 | android:visibility="gone" |
| 82 | app:backgroundTint="@color/transparent"/> |
Alexandre Lision | 44f9693 | 2016-11-11 16:02:33 -0500 | [diff] [blame] | 83 | |
Alexandre Lision | bdb5f47 | 2016-11-11 15:59:50 -0500 | [diff] [blame] | 84 | </RelativeLayout> |
| 85 | |
| 86 | <FrameLayout |
| 87 | android:layout_width="match_parent" |
| 88 | android:layout_height="wrap_content" |
| 89 | android:paddingTop="8dp"> |
| 90 | |
Adrien Béraud | 8bc9510 | 2018-08-25 22:34:51 -0400 | [diff] [blame] | 91 | <androidx.recyclerview.widget.RecyclerView |
Alexandre Lision | bdb5f47 | 2016-11-11 15:59:50 -0500 | [diff] [blame] | 92 | android:id="@+id/drawer_menu" |
| 93 | android:layout_width="match_parent" |
| 94 | android:layout_height="wrap_content" |
| 95 | android:nestedScrollingEnabled="false" |
Adrien Béraud | 91f8874 | 2019-09-09 00:46:46 -0400 | [diff] [blame^] | 96 | tools:listitem="@layout/item_menu" /> |
Alexandre Lision | bdb5f47 | 2016-11-11 15:59:50 -0500 | [diff] [blame] | 97 | |
Adrien Béraud | 8bc9510 | 2018-08-25 22:34:51 -0400 | [diff] [blame] | 98 | <androidx.recyclerview.widget.RecyclerView |
Alexandre Lision | 44f9693 | 2016-11-11 16:02:33 -0500 | [diff] [blame] | 99 | android:id="@+id/drawer_accounts" |
| 100 | android:layout_width="match_parent" |
| 101 | android:layout_height="wrap_content" |
| 102 | android:nestedScrollingEnabled="false" |
Adrien Béraud | 91f8874 | 2019-09-09 00:46:46 -0400 | [diff] [blame^] | 103 | tools:listitem="@layout/item_account" /> |
Alexandre Lision | 44f9693 | 2016-11-11 16:02:33 -0500 | [diff] [blame] | 104 | |
Alexandre Lision | bdb5f47 | 2016-11-11 15:59:50 -0500 | [diff] [blame] | 105 | </FrameLayout> |
| 106 | |
| 107 | </LinearLayout> |
Adrien Béraud | 8bc9510 | 2018-08-25 22:34:51 -0400 | [diff] [blame] | 108 | </androidx.core.widget.NestedScrollView> |
Alexandre Lision | bdb5f47 | 2016-11-11 15:59:50 -0500 | [diff] [blame] | 109 | |
| 110 | |