Filipe | fc05f24 | 2015-07-29 16:16:39 +0000 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" |
Filipe | 52b3b62 | 2015-12-01 16:18:14 +0000 | [diff] [blame] | 3 | xmlns:app="http://schemas.android.com/apk/res-auto" |
| 4 | android:id="@+id/detail_overlay" |
| 5 | android:layout_width="match_parent" |
| 6 | android:layout_height="match_parent" |
Filipe | fc05f24 | 2015-07-29 16:16:39 +0000 | [diff] [blame] | 7 | android:background="@color/black"> |
Filipe | 52b3b62 | 2015-12-01 16:18:14 +0000 | [diff] [blame] | 8 | <com.fairphone.mycontacts.view.SquareImageView |
Filipe | fc05f24 | 2015-07-29 16:16:39 +0000 | [diff] [blame] | 9 | android:id="@+id/contact_photo" |
| 10 | android:layout_gravity="center" |
Filipe | 52b3b62 | 2015-12-01 16:18:14 +0000 | [diff] [blame] | 11 | android:layout_width="match_parent" |
| 12 | android:layout_height="0px" |
| 13 | app:useDimension="width" |
Filipe | fc05f24 | 2015-07-29 16:16:39 +0000 | [diff] [blame] | 14 | android:layout_alignParentTop="true" |
Filipe Gonçalves | a429f79 | 2015-10-12 15:13:11 +0100 | [diff] [blame] | 15 | android:layout_centerHorizontal="true" |
Filipe | fc05f24 | 2015-07-29 16:16:39 +0000 | [diff] [blame] | 16 | android:scaleType="centerCrop" |
| 17 | android:src="@drawable/contact_no_photo_cut" |
| 18 | android:background="@color/fp_light_blue"/> |
| 19 | |
| 20 | |
| 21 | <LinearLayout |
| 22 | style="?android:attr/buttonStyle" |
| 23 | android:id="@+id/contact_launcher" |
| 24 | android:layout_width="324.66dp" |
| 25 | android:layout_height="50dp" |
| 26 | android:layout_alignParentBottom="true" |
| 27 | android:layout_marginBottom="65dp" |
| 28 | android:layout_centerHorizontal="true" |
| 29 | android:background="@drawable/people_widget_contacts_button"> |
| 30 | |
| 31 | <TextView |
| 32 | android:id="@+id/btn_create_view_contact" |
| 33 | android:layout_width="wrap_content" |
| 34 | android:layout_height="wrap_content" |
| 35 | android:layout_gravity="center" |
| 36 | android:background="@null" |
| 37 | android:clickable="false" |
| 38 | android:focusable="false" |
| 39 | android:gravity="center" |
| 40 | android:minHeight="0dp" |
| 41 | android:minWidth="0dp" |
| 42 | android:textSize="16sp" |
| 43 | android:textAllCaps="true" |
| 44 | android:fontFamily="sans-serif-condensed" |
| 45 | android:textColor="@color/white" |
Filipe Gonçalves | a429f79 | 2015-10-12 15:13:11 +0100 | [diff] [blame] | 46 | android:singleLine="true" |
Filipe | fc05f24 | 2015-07-29 16:16:39 +0000 | [diff] [blame] | 47 | android:drawableLeft="@drawable/ic_single_contact" |
| 48 | android:drawablePadding="14dp"/> |
| 49 | </LinearLayout> |
| 50 | |
| 51 | |
| 52 | <LinearLayout |
| 53 | android:id="@+id/bigbluebox" |
| 54 | android:layout_width="324.67dp" |
| 55 | android:layout_height="wrap_content" |
| 56 | android:layout_marginBottom="9dp" |
| 57 | android:layout_above="@id/contact_launcher" |
| 58 | android:layout_centerHorizontal="true" |
| 59 | android:background="@color/fp_blue" |
| 60 | android:orientation="vertical"> |
| 61 | |
| 62 | <TextView |
| 63 | android:id="@+id/contact_name" |
| 64 | android:layout_gravity="center_vertical" |
| 65 | android:paddingLeft="28dp" |
| 66 | android:paddingRight="28dp" |
| 67 | android:paddingTop="14dp" |
| 68 | android:paddingBottom="14dp" |
| 69 | android:layout_width="match_parent" |
| 70 | android:layout_height="wrap_content" |
| 71 | android:ellipsize="end" |
| 72 | android:fontFamily="sans-serif-light" |
| 73 | android:textColor="@color/white" |
| 74 | android:lineSpacingExtra="0dp" |
| 75 | android:textSize="34sp" |
| 76 | android:maxLines="2" |
| 77 | android:singleLine="false" |
| 78 | /> |
| 79 | |
| 80 | <LinearLayout |
| 81 | android:layout_width="match_parent" |
| 82 | android:layout_height="70dp"> |
| 83 | <LinearLayout |
| 84 | android:id="@+id/call_action" |
| 85 | android:layout_width="246.67dp" |
| 86 | android:layout_height="match_parent" |
| 87 | android:clickable="true" |
| 88 | android:focusable="false" |
| 89 | android:background="@drawable/detail_box_btn" |
| 90 | android:layout_gravity="center"> |
| 91 | <ImageView |
| 92 | android:layout_width="wrap_content" |
| 93 | android:layout_height="match_parent" |
| 94 | android:layout_marginStart="28dp" |
| 95 | android:layout_marginEnd="11.33dp" |
| 96 | android:layout_gravity="center_vertical" |
| 97 | android:src="@drawable/ic_phone"/> |
| 98 | <LinearLayout |
| 99 | android:layout_width="wrap_content" |
| 100 | android:layout_height="match_parent" |
| 101 | android:orientation="vertical" |
| 102 | android:gravity="center_vertical"> |
| 103 | <TextView |
| 104 | android:id="@+id/contact_number_type" |
| 105 | android:layout_width="wrap_content" |
| 106 | android:layout_height="wrap_content" |
| 107 | android:fontFamily="sans-serif-condensed" |
| 108 | android:textStyle="bold" |
| 109 | android:textColor="@color/white" |
| 110 | android:lineSpacingExtra="0dp" |
| 111 | android:textSize="16sp" |
| 112 | android:textAllCaps="true" |
| 113 | android:gravity="center_vertical" |
| 114 | android:singleLine="true"/> |
| 115 | <TextView |
| 116 | android:id="@+id/contact_phone_number" |
| 117 | android:layout_width="wrap_content" |
| 118 | android:layout_height="wrap_content" |
| 119 | android:fontFamily="sans-serif-condensed" |
| 120 | android:textColor="@color/white" |
| 121 | android:lineSpacingExtra="0dp" |
| 122 | android:textSize="16sp" |
| 123 | android:gravity="center_vertical" |
| 124 | android:singleLine="true"/> |
| 125 | </LinearLayout> |
| 126 | </LinearLayout> |
| 127 | <LinearLayout |
| 128 | android:id="@+id/sms_action" |
| 129 | android:layout_width="78dp" |
| 130 | android:layout_height="match_parent" |
| 131 | android:gravity="center" |
| 132 | android:clickable="true" |
| 133 | android:focusable="false" |
| 134 | android:background="@drawable/detail_box_btn"> |
| 135 | <ImageView |
| 136 | android:layout_width="wrap_content" |
| 137 | android:layout_height="wrap_content" |
| 138 | android:src="@drawable/ic_sms" |
| 139 | android:layout_gravity="center"/> |
| 140 | </LinearLayout> |
| 141 | </LinearLayout> |
| 142 | |
| 143 | </LinearLayout> |
| 144 | |
| 145 | </RelativeLayout> |