blob: c36dd2dd8162a91e6a453d3d3de31371c802d4f3 [file] [log] [blame]
<?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"
android:theme="@style/AppThemeBase">
<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: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/ic_action_edit" />
</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>
<androidx.appcompat.widget.AppCompatButton
android:id="@+id/addaccount_btn"
style="@style/Widget.AppCompat.Button.Borderless"
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" />
</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:targetApi="lollipop" />
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/drawer_accounts"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:nestedScrollingEnabled="false"
tools:targetApi="lollipop" />
</FrameLayout>
</LinearLayout>
</androidx.core.widget.NestedScrollView>