blob: d894b9ce754e7f558bf1ecd9d11ae50d9506ab2b [file] [log] [blame]
Alexandre Lisionbdb5f472016-11-11 15:59:50 -05001<?xml version="1.0" encoding="utf-8"?>
2
3<android.support.v4.widget.NestedScrollView xmlns:android="http://schemas.android.com/apk/res/android"
4 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"
19 android:paddingLeft="16dp"
20 android:paddingRight="16dp"
21 android:paddingTop="30dp"
22 android:theme="@style/MenuHeader">
23
24 <RelativeLayout
25 android:id="@+id/profile_container"
26 android:layout_width="match_parent"
27 android:layout_height="wrap_content">
28
29 <ImageView
30 android:id="@+id/user_photo"
31 android:layout_width="80dp"
32 android:layout_height="80dp"
33 android:layout_alignParentTop="true"
34 android:layout_centerHorizontal="true"
35 tools:src="@drawable/ic_contact_picture" />
36
37 <View
38 android:id="@+id/anchor"
39 android:layout_width="20dp"
40 android:layout_height="20dp"
41 android:layout_alignBottom="@+id/user_photo"
42 android:layout_centerHorizontal="true" />
43
44 <android.support.design.widget.FloatingActionButton
45 android:id="@+id/edit_profile"
46 android:layout_width="wrap_content"
47 android:layout_height="wrap_content"
48 android:layout_alignTop="@+id/anchor"
49 android:layout_toEndOf="@+id/anchor"
50 android:layout_toRightOf="@+id/anchor"
51 android:src="@drawable/ic_action_edit"
52 app:backgroundTint="@color/transparent_light"
53 app:fabSize="mini" />
54
55 <TextView
56 android:id="@+id/user_name"
57 android:layout_width="wrap_content"
58 android:layout_height="wrap_content"
59 android:layout_below="@+id/edit_profile"
60 android:layout_centerHorizontal="true"
61 android:layout_marginBottom="8dp"
62 android:layout_marginTop="8dp"
63 android:maxLines="1"
64 android:textColor="@color/white"
65 android:textSize="20sp"
66 android:textStyle="bold"
67 tools:text="Username" />
68
69 </RelativeLayout>
70
71 <Spinner
72 android:id="@+id/account_selection"
73 android:layout_width="wrap_content"
74 android:layout_height="wrap_content"
75 android:layout_alignParentEnd="true"
76 android:layout_alignParentLeft="true"
77 android:layout_alignParentRight="true"
78 android:layout_alignParentStart="true"
79 android:layout_below="@+id/profile_container"
80 android:layout_toEndOf="@+id/profile_container"
81 android:layout_toRightOf="@+id/profile_container"
82 android:visibility="visible"
83 tools:listitem="@layout/item_account_selected" />
84
85 <Button
86 android:id="@+id/addaccount_btn"
87 style="@style/Widget.AppCompat.Button.Borderless"
88 android:layout_width="wrap_content"
89 android:layout_height="72dp"
90 android:layout_alignParentEnd="true"
91 android:layout_alignParentLeft="true"
92 android:layout_alignParentRight="true"
93 android:layout_alignParentStart="true"
94 android:layout_below="@+id/profile_container"
95 android:text="@string/action_create"
96 android:visibility="gone" />
97 </RelativeLayout>
98
99 <FrameLayout
100 android:layout_width="match_parent"
101 android:layout_height="wrap_content"
102 android:paddingTop="8dp">
103
104 <android.support.v7.widget.RecyclerView
105 android:id="@+id/drawer_menu"
106 android:layout_width="match_parent"
107 android:layout_height="wrap_content"
108 android:nestedScrollingEnabled="false"
109 tools:targetApi="lollipop" />
110
111 </FrameLayout>
112
113 </LinearLayout>
114</android.support.v4.widget.NestedScrollView>
115
116