Aline Bonnet | 2041ab9 | 2016-10-05 11:51:58 -0400 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| 3 | xmlns:app="http://schemas.android.com/apk/res-auto" |
| 4 | xmlns:tools="http://schemas.android.com/tools" |
| 5 | android:layout_width="match_parent" |
| 6 | android:layout_height="match_parent" |
| 7 | android:layout_gravity="center" |
| 8 | android:orientation="vertical" |
| 9 | android:padding="20dp"> |
| 10 | |
| 11 | <TextView |
| 12 | android:layout_width="wrap_content" |
| 13 | android:layout_height="wrap_content" |
| 14 | android:layout_gravity="center" |
| 15 | android:text="@string/profile_message_warning" /> |
| 16 | |
| 17 | <RelativeLayout |
| 18 | android:id="@+id/profile_container" |
| 19 | android:layout_width="150dp" |
| 20 | android:layout_height="180dp" |
| 21 | android:layout_gravity="center"> |
| 22 | |
| 23 | <ImageView |
| 24 | android:id="@+id/profile_photo" |
| 25 | android:layout_width="120dp" |
| 26 | android:layout_height="120dp" |
| 27 | android:layout_alignParentTop="true" |
| 28 | android:layout_centerHorizontal="true" |
| 29 | android:layout_margin="10dp" |
| 30 | android:scaleType="fitCenter" |
| 31 | tools:src="@drawable/ic_contact_picture" /> |
| 32 | |
| 33 | <android.support.design.widget.FloatingActionButton |
| 34 | android:id="@+id/camera" |
| 35 | android:layout_width="wrap_content" |
| 36 | android:layout_height="wrap_content" |
| 37 | android:layout_alignTop="@+id/anchor" |
| 38 | android:layout_toRightOf="@+id/anchor" |
| 39 | android:contentDescription="@string/take_a_photo" |
| 40 | android:src="@drawable/ic_photo_camera" |
| 41 | android:text="@string/take_a_photo" |
| 42 | app:backgroundTint="@color/light" |
| 43 | app:rippleColor="@android:color/white" /> |
| 44 | |
| 45 | <View |
| 46 | android:id="@+id/anchor" |
| 47 | android:layout_width="20dp" |
| 48 | android:layout_height="20dp" |
| 49 | android:layout_alignBottom="@+id/profile_photo" |
| 50 | android:layout_centerHorizontal="true" /> |
| 51 | |
| 52 | <android.support.design.widget.FloatingActionButton |
| 53 | android:id="@+id/gallery" |
| 54 | android:layout_width="wrap_content" |
| 55 | android:layout_height="wrap_content" |
| 56 | android:layout_alignTop="@+id/anchor" |
| 57 | android:layout_toLeftOf="@+id/anchor" |
| 58 | android:contentDescription="@string/open_the_gallery" |
| 59 | android:src="@drawable/ic_insert_photo" |
| 60 | android:text="@string/open_the_gallery" |
| 61 | app:backgroundTint="@color/light" |
| 62 | app:rippleColor="@android:color/white" /> |
| 63 | |
| 64 | </RelativeLayout> |
| 65 | |
| 66 | <EditText |
| 67 | android:id="@+id/user_name" |
| 68 | android:layout_width="match_parent" |
| 69 | android:layout_height="wrap_content" |
| 70 | android:inputType="textCapWords" |
| 71 | android:maxLines="1" |
| 72 | android:textAlignment="center" |
| 73 | android:hint="@string/unknowm_if_empty" |
| 74 | tools:text="Username" /> |
| 75 | |
| 76 | </LinearLayout> |