Tyler Gunn | a72b111 | 2015-08-04 13:33:49 -0700 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- |
| 3 | ~ Copyright (C) 2015 The Android Open Source Project |
| 4 | ~ |
| 5 | ~ Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | ~ you may not use this file except in compliance with the License. |
| 7 | ~ You may obtain a copy of the License at |
| 8 | ~ |
| 9 | ~ http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | ~ |
| 11 | ~ Unless required by applicable law or agreed to in writing, software |
| 12 | ~ distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | ~ See the License for the specific language governing permissions and |
| 15 | ~ limitations under the License |
| 16 | --> |
| 17 | |
| 18 | <LinearLayout |
| 19 | xmlns:android="http://schemas.android.com/apk/res/android" |
Tyler Gunn | a72b111 | 2015-08-04 13:33:49 -0700 | [diff] [blame] | 20 | android:layout_width="match_parent" |
Tyler Gunn | 9d1c20d | 2015-08-12 14:34:45 -0700 | [diff] [blame] | 21 | android:layout_height="match_parent" |
| 22 | android:background="@android:color/transparent" |
| 23 | android:id="@+id/call_subject_dialog" |
| 24 | android:orientation="vertical"> |
Tyler Gunn | a72b111 | 2015-08-04 13:33:49 -0700 | [diff] [blame] | 25 | |
| 26 | <RelativeLayout |
Tyler Gunn | 9d1c20d | 2015-08-12 14:34:45 -0700 | [diff] [blame] | 27 | android:layout_height="0dp" |
| 28 | android:layout_weight="1" |
| 29 | android:layout_width="match_parent"> |
Tyler Gunn | a72b111 | 2015-08-04 13:33:49 -0700 | [diff] [blame] | 30 | |
Tyler Gunn | 9d1c20d | 2015-08-12 14:34:45 -0700 | [diff] [blame] | 31 | <!-- The call subject dialog will be centered in the space above the subject list. --> |
| 32 | <LinearLayout |
| 33 | android:id="@+id/dialog_view" |
| 34 | android:orientation="vertical" |
| 35 | android:layout_width="match_parent" |
Tyler Gunn | a72b111 | 2015-08-04 13:33:49 -0700 | [diff] [blame] | 36 | android:layout_height="wrap_content" |
Tyler Gunn | 9d1c20d | 2015-08-12 14:34:45 -0700 | [diff] [blame] | 37 | android:clickable="true" |
| 38 | android:theme="@android:style/Theme.Material.Light.Dialog" |
| 39 | android:elevation="16dp" |
| 40 | android:layout_centerInParent="true" |
| 41 | android:background="@drawable/dialog_background_material"> |
Tyler Gunn | a72b111 | 2015-08-04 13:33:49 -0700 | [diff] [blame] | 42 | |
Tyler Gunn | 9d1c20d | 2015-08-12 14:34:45 -0700 | [diff] [blame] | 43 | <LinearLayout |
| 44 | android:layout_width="match_parent" |
| 45 | android:layout_height="wrap_content" |
| 46 | android:orientation="horizontal" |
| 47 | android:layout_marginStart="@dimen/call_subject_dialog_margin" |
| 48 | android:layout_marginEnd="@dimen/call_subject_dialog_margin" |
| 49 | android:layout_marginTop="@dimen/call_subject_dialog_margin"> |
| 50 | |
| 51 | <QuickContactBadge |
| 52 | android:id="@+id/contact_photo" |
| 53 | android:layout_width="@dimen/call_subject_dialog_contact_photo_size" |
| 54 | android:layout_height="@dimen/call_subject_dialog_contact_photo_size" |
| 55 | android:layout_gravity="top" |
| 56 | android:focusable="true" |
| 57 | android:layout_marginEnd="@dimen/call_subject_dialog_margin" /> |
| 58 | |
| 59 | <LinearLayout |
| 60 | android:layout_width="match_parent" |
| 61 | android:layout_height="wrap_content" |
| 62 | android:orientation="vertical" |
| 63 | android:gravity="center_vertical"> |
| 64 | |
| 65 | <TextView |
| 66 | android:id="@+id/name" |
| 67 | android:layout_width="wrap_content" |
| 68 | android:layout_height="wrap_content" |
| 69 | android:textColor="@color/dialtacts_primary_text_color" |
| 70 | android:textSize="@dimen/call_subject_dialog_secondary_text_size" |
| 71 | android:singleLine="true" /> |
| 72 | |
| 73 | <TextView |
| 74 | android:id="@+id/number" |
| 75 | android:layout_width="wrap_content" |
| 76 | android:layout_height="wrap_content" |
| 77 | android:layout_gravity="center_vertical" |
| 78 | android:layout_marginTop="@dimen/call_subject_dialog_between_line_margin" |
| 79 | android:textColor="@color/dialtacts_secondary_text_color" |
| 80 | android:textSize="@dimen/call_subject_dialog_secondary_text_size" |
| 81 | android:singleLine="true" /> |
| 82 | </LinearLayout> |
| 83 | </LinearLayout> |
| 84 | |
| 85 | <EditText |
| 86 | android:id="@+id/call_subject" |
| 87 | android:hint="@string/call_subject_hint" |
| 88 | android:layout_width="match_parent" |
| 89 | android:layout_height="0dp" |
| 90 | android:layout_weight="1" |
| 91 | android:layout_gravity="top" |
| 92 | android:textColor="@color/dialtacts_secondary_text_color" |
| 93 | android:textSize="@dimen/call_subject_dialog_secondary_text_size" |
| 94 | android:gravity="top" |
| 95 | android:background="@null" |
| 96 | android:layout_marginTop="@dimen/call_subject_dialog_edit_spacing" |
| 97 | android:layout_marginStart="@dimen/call_subject_dialog_margin" |
| 98 | android:layout_marginEnd="@dimen/call_subject_dialog_margin" |
| 99 | /> |
| 100 | |
| 101 | <TextView |
| 102 | android:id="@+id/character_limit" |
| 103 | android:layout_width="wrap_content" |
| 104 | android:layout_height="wrap_content" |
| 105 | android:textColor="@color/dialtacts_secondary_text_color" |
| 106 | android:textSize="@dimen/call_subject_dialog_secondary_text_size" |
| 107 | android:singleLine="true" |
| 108 | android:layout_marginStart="@dimen/call_subject_dialog_margin" |
| 109 | android:layout_marginEnd="@dimen/call_subject_dialog_margin" |
| 110 | android:layout_marginTop="@dimen/call_subject_dialog_margin" |
| 111 | android:layout_marginBottom="@dimen/call_subject_dialog_margin"/> |
| 112 | |
| 113 | <View |
| 114 | android:layout_width="fill_parent" |
| 115 | android:layout_height="1dp" |
| 116 | android:background="@color/call_subject_divider"/> |
| 117 | |
| 118 | <RelativeLayout |
| 119 | android:layout_width="match_parent" |
| 120 | android:layout_height="wrap_content" |
| 121 | android:layout_marginStart="@dimen/call_subject_dialog_margin" |
| 122 | android:layout_marginEnd="@dimen/call_subject_dialog_margin" |
| 123 | android:layout_marginTop="@dimen/call_subject_dialog_margin" |
| 124 | android:layout_marginBottom="@dimen/call_subject_dialog_margin"> |
| 125 | |
| 126 | <ImageView |
| 127 | android:id="@+id/history_button" |
| 128 | android:layout_width="25dp" |
| 129 | android:layout_height="25dp" |
| 130 | android:src="@drawable/ic_history_white_drawable_24dp" |
| 131 | android:tint="@color/call_subject_history_icon" |
| 132 | android:layout_alignParentStart="true" |
| 133 | android:layout_centerVertical="true" /> |
| 134 | |
| 135 | <TextView |
| 136 | android:id="@+id/send_and_call_button" |
| 137 | android:layout_width="wrap_content" |
| 138 | android:layout_height="wrap_content" |
| 139 | android:text="@string/send_and_call_button" |
| 140 | android:textColor="@color/call_subject_button" |
| 141 | android:textSize="@dimen/call_subject_dialog_secondary_text_size" |
| 142 | android:singleLine="true" |
| 143 | android:layout_alignParentEnd="true" |
| 144 | android:layout_centerVertical="true" /> |
| 145 | |
| 146 | </RelativeLayout> |
| 147 | </LinearLayout> |
Tyler Gunn | a72b111 | 2015-08-04 13:33:49 -0700 | [diff] [blame] | 148 | </RelativeLayout> |
Tyler Gunn | 9d1c20d | 2015-08-12 14:34:45 -0700 | [diff] [blame] | 149 | <!-- The subject list is pinned to the bottom of the screen. --> |
| 150 | <ListView |
| 151 | android:id="@+id/subject_list" |
| 152 | android:layout_height="wrap_content" |
| 153 | android:layout_width="match_parent" |
| 154 | android:layout_below="@id/dialog_view" |
| 155 | android:background="@color/call_subject_history_background" |
| 156 | android:divider="@null" |
| 157 | android:elevation="8dp" /> |
| 158 | |
Tyler Gunn | a72b111 | 2015-08-04 13:33:49 -0700 | [diff] [blame] | 159 | </LinearLayout> |