blob: d6365c24a8edc03e9fad55e01ba056837ed047ca [file] [log] [blame]
Tyler Gunna72b1112015-08-04 13:33:49 -07001<?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 Gunna72b1112015-08-04 13:33:49 -070020 android:layout_width="match_parent"
Tyler Gunn9d1c20d2015-08-12 14:34:45 -070021 android:layout_height="match_parent"
22 android:background="@android:color/transparent"
23 android:id="@+id/call_subject_dialog"
24 android:orientation="vertical">
Tyler Gunna72b1112015-08-04 13:33:49 -070025
26 <RelativeLayout
Tyler Gunn9d1c20d2015-08-12 14:34:45 -070027 android:layout_height="0dp"
28 android:layout_weight="1"
29 android:layout_width="match_parent">
Tyler Gunna72b1112015-08-04 13:33:49 -070030
Tyler Gunn9d1c20d2015-08-12 14:34:45 -070031 <!-- 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 Gunna72b1112015-08-04 13:33:49 -070036 android:layout_height="wrap_content"
Tyler Gunn9d1c20d2015-08-12 14:34:45 -070037 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 Gunna72b1112015-08-04 13:33:49 -070042
Tyler Gunn9d1c20d2015-08-12 14:34:45 -070043 <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 Gunna72b1112015-08-04 13:33:49 -0700148 </RelativeLayout>
Tyler Gunn9d1c20d2015-08-12 14:34:45 -0700149 <!-- 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 Gunna72b1112015-08-04 13:33:49 -0700159</LinearLayout>