blob: 53f6b8ddb5a087f35b7b70b0c3b3687df95c553d [file] [log] [blame]
Chiao Cheng94b10b52012-08-17 16:59:12 -07001<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2009 The Android Open Source Project
3
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
7
8 http://www.apache.org/licenses/LICENSE-2.0
9
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
15-->
16
17<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
18 xmlns:ex="http://schemas.android.com/apk/res-auto"
19 android:id="@+id/call_detail"
20 android:layout_width="match_parent"
21 android:layout_height="match_parent"
22 android:visibility="gone"
Chiao Cheng94b10b52012-08-17 16:59:12 -070023>
24 <!--
25 The list view is under everything.
26 It contains a first header element which is hidden under the controls UI.
27 When scrolling, the controls move up until the name bar hits the top.
28 -->
29 <ListView
30 android:id="@+id/history"
31 android:layout_width="match_parent"
32 android:layout_height="wrap_content"
Fabrice Di Meglioc341db02013-04-03 21:11:37 -070033 android:layout_alignParentStart="true"
Chiao Cheng94b10b52012-08-17 16:59:12 -070034 android:layout_alignParentTop="true"
35 />
36
37 <!-- All the controls which are part of the pinned header are in this layout. -->
38 <RelativeLayout
39 android:id="@+id/controls"
40 android:layout_width="match_parent"
41 android:layout_height="match_parent"
Fabrice Di Meglioc341db02013-04-03 21:11:37 -070042 android:layout_alignParentStart="true"
Chiao Cheng94b10b52012-08-17 16:59:12 -070043 android:layout_alignParentTop="true"
44 >
45 <FrameLayout
46 android:id="@+id/voicemail_status"
47 android:layout_width="match_parent"
48 android:layout_height="wrap_content"
Fabrice Di Meglioc341db02013-04-03 21:11:37 -070049 android:layout_alignParentStart="true"
Chiao Cheng94b10b52012-08-17 16:59:12 -070050 android:layout_alignParentTop="true"
51 android:visibility="gone"
52 >
53 <include layout="@layout/call_log_voicemail_status"/>
54 </FrameLayout>
55
56 <view
Chiao Cheng911fbff2012-12-06 13:44:34 -080057 class="com.android.contacts.common.widget.ProportionalLayout"
Chiao Cheng94b10b52012-08-17 16:59:12 -070058 android:id="@+id/contact_background_sizer"
59 android:layout_width="match_parent"
60 android:layout_height="wrap_content"
Fabrice Di Meglioc341db02013-04-03 21:11:37 -070061 android:layout_alignParentStart="true"
Chiao Cheng94b10b52012-08-17 16:59:12 -070062 android:layout_below="@id/voicemail_status"
63 ex:ratio="0.5"
64 ex:direction="widthToHeight"
65 >
66 <ImageView
67 android:id="@+id/contact_background"
68 android:layout_width="match_parent"
69 android:layout_height="0dip"
70 android:adjustViewBounds="true"
71 android:scaleType="centerCrop"
72 />
73 </view>
Yorke Leeaa536fd2013-07-29 11:31:04 -070074
Chiao Cheng94b10b52012-08-17 16:59:12 -070075 <LinearLayout
Yorke Leeac09b512013-09-09 08:51:54 -070076 android:id="@+id/separator"
Chiao Cheng94b10b52012-08-17 16:59:12 -070077 android:layout_width="match_parent"
78 android:layout_height="1dip"
Yorke Leeac09b512013-09-09 08:51:54 -070079 android:background="@color/background_dialer_light"
Chiao Cheng94b10b52012-08-17 16:59:12 -070080 android:layout_below="@+id/contact_background_sizer"
81 />
82 <View
83 android:id="@+id/photo_text_bar"
84 android:layout_width="match_parent"
85 android:layout_height="42dip"
86 android:background="#7F000000"
Fabrice Di Meglioc341db02013-04-03 21:11:37 -070087 android:layout_alignParentStart="true"
Chiao Cheng94b10b52012-08-17 16:59:12 -070088 android:layout_alignBottom="@id/contact_background_sizer"
89 />
90 <ImageView
91 android:id="@+id/main_action"
92 android:layout_width="wrap_content"
93 android:layout_height="0dip"
94 android:scaleType="center"
Fabrice Di Meglioc341db02013-04-03 21:11:37 -070095 android:layout_alignEnd="@id/photo_text_bar"
Chiao Cheng94b10b52012-08-17 16:59:12 -070096 android:layout_alignBottom="@id/photo_text_bar"
97 android:layout_alignTop="@id/photo_text_bar"
Fabrice Di Meglioc341db02013-04-03 21:11:37 -070098 android:layout_marginEnd="@dimen/call_log_outer_margin"
Chiao Cheng94b10b52012-08-17 16:59:12 -070099 />
100 <TextView
101 android:id="@+id/header_text"
102 android:layout_width="wrap_content"
103 android:layout_height="0dip"
Fabrice Di Meglioc341db02013-04-03 21:11:37 -0700104 android:layout_alignStart="@id/photo_text_bar"
Chiao Cheng94b10b52012-08-17 16:59:12 -0700105 android:layout_toLeftOf="@id/main_action"
106 android:layout_alignTop="@id/photo_text_bar"
107 android:layout_alignBottom="@id/photo_text_bar"
Fabrice Di Meglioc341db02013-04-03 21:11:37 -0700108 android:layout_marginEnd="@dimen/call_log_inner_margin"
109 android:layout_marginStart="@dimen/call_detail_contact_name_margin"
Chiao Cheng94b10b52012-08-17 16:59:12 -0700110 android:gravity="center_vertical"
Yorke Leeaa536fd2013-07-29 11:31:04 -0700111 android:textColor="?attr/call_log_header_color"
Chiao Cheng94b10b52012-08-17 16:59:12 -0700112 android:textAppearance="?android:attr/textAppearanceMedium"
113 android:singleLine="true"
114 />
115 <ImageButton
116 android:id="@+id/main_action_push_layer"
117 android:layout_width="match_parent"
118 android:layout_height="match_parent"
Fabrice Di Meglioc341db02013-04-03 21:11:37 -0700119 android:layout_alignStart="@id/contact_background_sizer"
Chiao Cheng94b10b52012-08-17 16:59:12 -0700120 android:layout_alignTop="@id/contact_background_sizer"
Fabrice Di Meglioc341db02013-04-03 21:11:37 -0700121 android:layout_alignEnd="@id/contact_background_sizer"
Chiao Cheng94b10b52012-08-17 16:59:12 -0700122 android:layout_alignBottom="@id/contact_background_sizer"
123 android:background="?android:attr/selectableItemBackground"
124 />
125 <LinearLayout
126 android:id="@+id/voicemail_container"
127 android:layout_width="match_parent"
128 android:layout_height="wrap_content"
Yorke Leeac09b512013-09-09 08:51:54 -0700129 android:layout_below="@id/separator"
Yorke Leeaa536fd2013-07-29 11:31:04 -0700130 android:paddingBottom="@dimen/call_detail_button_spacing">
Chiao Cheng94b10b52012-08-17 16:59:12 -0700131 <!-- The voicemail fragment will be put here. -->
132 </LinearLayout>
133 <FrameLayout
134 android:id="@+id/call_and_sms"
135 android:layout_width="match_parent"
136 android:layout_height="@dimen/call_log_list_item_height"
137 android:layout_marginBottom="@dimen/call_detail_button_spacing"
138 android:layout_below="@id/voicemail_container"
139 android:gravity="center_vertical"
Yorke Leeaa536fd2013-07-29 11:31:04 -0700140 android:background="@color/background_dialer_list_items"
Chiao Cheng94b10b52012-08-17 16:59:12 -0700141 >
Yorke Leeaa536fd2013-07-29 11:31:04 -0700142
Chiao Cheng94b10b52012-08-17 16:59:12 -0700143 <LinearLayout
144 android:id="@+id/call_and_sms_main_action"
145 android:layout_width="match_parent"
146 android:layout_height="match_parent"
147 android:orientation="horizontal"
148 android:focusable="true"
149 android:background="?android:attr/selectableItemBackground"
150 >
151
152 <LinearLayout
153 android:layout_width="0dip"
154 android:layout_height="match_parent"
155 android:layout_weight="1"
Fabrice Di Meglioc341db02013-04-03 21:11:37 -0700156 android:paddingStart="@dimen/call_log_indent_margin"
Chiao Cheng94b10b52012-08-17 16:59:12 -0700157 android:orientation="vertical"
158 android:gravity="center_vertical"
159 >
160
161 <TextView android:id="@+id/call_and_sms_text"
162 android:layout_width="wrap_content"
163 android:layout_height="wrap_content"
Fabrice Di Meglioc341db02013-04-03 21:11:37 -0700164 android:paddingEnd="@dimen/call_log_icon_margin"
Chiao Cheng94b10b52012-08-17 16:59:12 -0700165 android:textAppearance="?android:attr/textAppearanceMedium"
166 android:textColor="?attr/call_log_primary_text_color"
167 android:singleLine="true"
168 android:ellipsize="end"
169 />
170
171 <TextView android:id="@+id/call_and_sms_label"
172 android:layout_width="wrap_content"
173 android:layout_height="wrap_content"
Fabrice Di Meglioc341db02013-04-03 21:11:37 -0700174 android:paddingEnd="@dimen/call_log_icon_margin"
Chiao Cheng94b10b52012-08-17 16:59:12 -0700175 android:textAppearance="?android:attr/textAppearanceSmall"
176 android:textColor="?attr/call_log_primary_text_color"
177 android:textAllCaps="true"
178 android:singleLine="true"
179 android:ellipsize="end"
180 />
181 </LinearLayout>
182
183 <View android:id="@+id/call_and_sms_divider"
184 android:layout_width="1px"
185 android:layout_height="32dip"
Yorke Leeaa536fd2013-07-29 11:31:04 -0700186 android:background="@color/background_dialer_light"
Chiao Cheng94b10b52012-08-17 16:59:12 -0700187 android:layout_gravity="center_vertical"
188 />
189
190 <ImageView android:id="@+id/call_and_sms_icon"
191 android:layout_width="@color/call_log_voicemail_highlight_color"
192 android:layout_height="match_parent"
Fabrice Di Meglioc341db02013-04-03 21:11:37 -0700193 android:paddingStart="@dimen/call_log_inner_margin"
194 android:paddingEnd="@dimen/call_log_outer_margin"
Chiao Cheng94b10b52012-08-17 16:59:12 -0700195 android:gravity="center"
196 android:scaleType="centerInside"
197 android:focusable="true"
198 android:background="?android:attr/selectableItemBackground"
199 />
200 </LinearLayout>
201 </FrameLayout>
202 </RelativeLayout>
Chiao Cheng94b10b52012-08-17 16:59:12 -0700203 <!--
204 Used to hide the UI when playing a voicemail and the proximity sensor
205 is detecting something near the screen.
206 -->
207 <View
208 android:id="@+id/blank"
209 android:layout_width="match_parent"
210 android:layout_height="match_parent"
Fabrice Di Meglioc341db02013-04-03 21:11:37 -0700211 android:layout_alignParentStart="true"
Chiao Cheng94b10b52012-08-17 16:59:12 -0700212 android:layout_alignParentTop="true"
213 android:background="@android:color/black"
214 android:visibility="gone"
215 android:clickable="true"
216 />
217</RelativeLayout>