blob: c25b4a9950dc42a09cc4385022a8e4a3edafb213 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
|
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2009 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:ex="http://schemas.android.com/apk/res-auto"
android:id="@+id/call_detail"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:visibility="gone"
android:background="@android:color/black"
>
<!--
The list view is under everything.
It contains a first header element which is hidden under the controls UI.
When scrolling, the controls move up until the name bar hits the top.
-->
<ListView
android:id="@+id/history"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentStart="true"
android:layout_alignParentTop="true"
/>
<!-- All the controls which are part of the pinned header are in this layout. -->
<RelativeLayout
android:id="@+id/controls"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_alignParentStart="true"
android:layout_alignParentTop="true"
>
<FrameLayout
android:id="@+id/voicemail_status"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentStart="true"
android:layout_alignParentTop="true"
android:visibility="gone"
>
<include layout="@layout/call_log_voicemail_status"/>
</FrameLayout>
<view
class="com.android.contacts.common.widget.ProportionalLayout"
android:id="@+id/contact_background_sizer"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentStart="true"
android:layout_below="@id/voicemail_status"
ex:ratio="0.5"
ex:direction="widthToHeight"
>
<ImageView
android:id="@+id/contact_background"
android:layout_width="match_parent"
android:layout_height="0dip"
android:adjustViewBounds="true"
android:scaleType="centerCrop"
/>
</view>
<LinearLayout
android:id="@+id/blue_separator"
android:layout_width="match_parent"
android:layout_height="1dip"
android:background="@android:color/holo_blue_light"
android:layout_below="@+id/contact_background_sizer"
/>
<View
android:id="@+id/photo_text_bar"
android:layout_width="match_parent"
android:layout_height="42dip"
android:background="#7F000000"
android:layout_alignParentStart="true"
android:layout_alignBottom="@id/contact_background_sizer"
/>
<ImageView
android:id="@+id/main_action"
android:layout_width="wrap_content"
android:layout_height="0dip"
android:scaleType="center"
android:layout_alignEnd="@id/photo_text_bar"
android:layout_alignBottom="@id/photo_text_bar"
android:layout_alignTop="@id/photo_text_bar"
android:layout_marginEnd="@dimen/call_log_outer_margin"
/>
<TextView
android:id="@+id/header_text"
android:layout_width="wrap_content"
android:layout_height="0dip"
android:layout_alignStart="@id/photo_text_bar"
android:layout_toLeftOf="@id/main_action"
android:layout_alignTop="@id/photo_text_bar"
android:layout_alignBottom="@id/photo_text_bar"
android:layout_marginEnd="@dimen/call_log_inner_margin"
android:layout_marginStart="@dimen/call_detail_contact_name_margin"
android:gravity="center_vertical"
android:textColor="?attr/call_log_primary_text_color"
android:textAppearance="?android:attr/textAppearanceMedium"
android:singleLine="true"
/>
<ImageButton
android:id="@+id/main_action_push_layer"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_alignStart="@id/contact_background_sizer"
android:layout_alignTop="@id/contact_background_sizer"
android:layout_alignEnd="@id/contact_background_sizer"
android:layout_alignBottom="@id/contact_background_sizer"
android:background="?android:attr/selectableItemBackground"
/>
<LinearLayout
android:id="@+id/voicemail_container"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingBottom="@dimen/call_detail_button_spacing"
android:layout_below="@id/blue_separator"
>
<!-- The voicemail fragment will be put here. -->
</LinearLayout>
<FrameLayout
android:id="@+id/call_and_sms"
android:layout_width="match_parent"
android:layout_height="@dimen/call_log_list_item_height"
android:layout_marginBottom="@dimen/call_detail_button_spacing"
android:layout_below="@id/voicemail_container"
android:gravity="center_vertical"
android:background="@drawable/dialpad_background"
>
<LinearLayout
android:id="@+id/call_and_sms_main_action"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal"
android:focusable="true"
android:background="?android:attr/selectableItemBackground"
>
<LinearLayout
android:layout_width="0dip"
android:layout_height="match_parent"
android:layout_weight="1"
android:paddingStart="@dimen/call_log_indent_margin"
android:orientation="vertical"
android:gravity="center_vertical"
>
<TextView android:id="@+id/call_and_sms_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingEnd="@dimen/call_log_icon_margin"
android:textAppearance="?android:attr/textAppearanceMedium"
android:textColor="?attr/call_log_primary_text_color"
android:singleLine="true"
android:ellipsize="end"
/>
<TextView android:id="@+id/call_and_sms_label"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingEnd="@dimen/call_log_icon_margin"
android:textAppearance="?android:attr/textAppearanceSmall"
android:textColor="?attr/call_log_primary_text_color"
android:textAllCaps="true"
android:singleLine="true"
android:ellipsize="end"
/>
</LinearLayout>
<View android:id="@+id/call_and_sms_divider"
android:layout_width="1px"
android:layout_height="32dip"
android:background="@drawable/ic_divider_dashed_holo_dark"
android:layout_gravity="center_vertical"
/>
<ImageView android:id="@+id/call_and_sms_icon"
android:layout_width="@color/call_log_voicemail_highlight_color"
android:layout_height="match_parent"
android:paddingStart="@dimen/call_log_inner_margin"
android:paddingEnd="@dimen/call_log_outer_margin"
android:gravity="center"
android:scaleType="centerInside"
android:focusable="true"
android:background="?android:attr/selectableItemBackground"
/>
</LinearLayout>
</FrameLayout>
</RelativeLayout>
<!--
Used to hide the UI when playing a voicemail and the proximity sensor
is detecting something near the screen.
-->
<View
android:id="@+id/blank"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_alignParentStart="true"
android:layout_alignParentTop="true"
android:background="@android:color/black"
android:visibility="gone"
android:clickable="true"
/>
</RelativeLayout>
|