| <?xml version="1.0" encoding="utf-8"?> |
| |
| <androidx.core.widget.NestedScrollView 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:layout_width="match_parent" |
| android:layout_height="wrap_content"> |
| |
| <LinearLayout |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:orientation="vertical"> |
| |
| <RelativeLayout |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:background="@color/color_primary_dark" |
| android:paddingTop="30dp" |
| android:theme="@style/MenuHeader"> |
| |
| <RelativeLayout |
| android:id="@+id/profile_container" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content"> |
| |
| <ImageView |
| android:id="@+id/user_photo" |
| android:layout_width="80dp" |
| android:layout_height="80dp" |
| android:layout_alignParentTop="true" |
| android:layout_centerHorizontal="true" |
| tools:src="@drawable/ic_contact_picture_fallback" /> |
| |
| <View |
| android:id="@+id/anchor" |
| android:layout_width="20dp" |
| android:layout_height="20dp" |
| android:layout_alignBottom="@id/user_photo" |
| android:layout_centerHorizontal="true" /> |
| |
| <com.google.android.material.floatingactionbutton.FloatingActionButton |
| android:id="@+id/user_profile_edit" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_alignTop="@+id/anchor" |
| android:layout_toEndOf="@+id/anchor" |
| app:backgroundTint="@color/transparent_light" |
| app:fabSize="mini" |
| app:srcCompat="@drawable/baseline_edit_24"/> |
| |
| </RelativeLayout> |
| |
| |
| <RelativeLayout |
| android:id="@+id/account_selection" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:layout_alignParentEnd="true" |
| android:layout_alignParentStart="true" |
| android:layout_below="@+id/profile_container" |
| android:layout_toEndOf="@+id/profile_container" |
| android:background="?attr/selectableItemBackground" |
| android:clickable="true" |
| android:focusable="true"> |
| |
| <include layout="@layout/item_account_selected" /> |
| |
| </RelativeLayout> |
| |
| <com.google.android.material.button.MaterialButton |
| android:id="@+id/addaccount_btn" |
| style="@style/Widget.MaterialComponents.Button" |
| android:layout_width="wrap_content" |
| android:layout_height="72dp" |
| android:layout_alignParentEnd="true" |
| android:layout_alignParentStart="true" |
| android:layout_below="@+id/profile_container" |
| android:layout_toEndOf="@+id/profile_container" |
| android:gravity="center" |
| android:text="@string/action_create" |
| android:visibility="gone" |
| app:backgroundTint="@color/transparent"/> |
| |
| </RelativeLayout> |
| |
| <FrameLayout |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:paddingTop="8dp"> |
| |
| <androidx.recyclerview.widget.RecyclerView |
| android:id="@+id/drawer_menu" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:nestedScrollingEnabled="false" |
| tools:listitem="@layout/item_menu" /> |
| |
| <androidx.recyclerview.widget.RecyclerView |
| android:id="@+id/drawer_accounts" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:nestedScrollingEnabled="false" |
| tools:listitem="@layout/item_account" /> |
| |
| </FrameLayout> |
| |
| </LinearLayout> |
| </androidx.core.widget.NestedScrollView> |
| |
| |