blob: 8f38a19dc3476db2f376a1a7a5b3c154396c9416 [file] [log] [blame]
The Android Open Source Project7aa0e4c2009-03-03 19:32:21 -08001<?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
Flavio Lerda9cafe472011-06-08 14:06:13 +01007
The Android Open Source Project7aa0e4c2009-03-03 19:32:21 -08008 http://www.apache.org/licenses/LICENSE-2.0
Flavio Lerda9cafe472011-06-08 14:06:13 +01009
The Android Open Source Project7aa0e4c2009-03-03 19:32:21 -080010 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
Flavio Lerda9cafe472011-06-08 14:06:13 +010017<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
Chiao Cheng9f35ccd2012-08-15 18:13:43 -070018 xmlns:ex="http://schemas.android.com/apk/res-auto"
Flavio Lerda4e63bab2011-08-10 18:26:46 +010019 android:id="@+id/call_detail"
Romain Guy6304c0b2010-01-08 15:06:49 -080020 android:layout_width="match_parent"
21 android:layout_height="match_parent"
Flavio Lerda4e63bab2011-08-10 18:26:46 +010022 android:visibility="gone"
Makoto Onuki5ff2dfc2012-04-19 15:00:20 -070023 android:background="@android:color/black"
The Android Open Source Project7aa0e4c2009-03-03 19:32:21 -080024>
Flavio Lerdad1333a22011-08-11 16:19:47 +010025 <!--
26 The list view is under everything.
27 It contains a first header element which is hidden under the controls UI.
28 When scrolling, the controls move up until the name bar hits the top.
29 -->
Flavio Lerda9a208cc2011-07-12 21:05:47 +010030 <ListView
Flavio Lerda5592b752011-07-12 18:47:36 +010031 android:id="@+id/history"
Romain Guy6304c0b2010-01-08 15:06:49 -080032 android:layout_width="match_parent"
Flavio Lerda9cafe472011-06-08 14:06:13 +010033 android:layout_height="wrap_content"
34 android:layout_alignParentLeft="true"
Flavio Lerdad1333a22011-08-11 16:19:47 +010035 android:layout_alignParentTop="true"
Flavio Lerda9a208cc2011-07-12 21:05:47 +010036 />
Flavio Lerdad1333a22011-08-11 16:19:47 +010037
38 <!-- All the controls which are part of the pinned header are in this layout. -->
39 <RelativeLayout
40 android:id="@+id/controls"
41 android:layout_width="match_parent"
42 android:layout_height="match_parent"
43 android:layout_alignParentLeft="true"
44 android:layout_alignParentTop="true"
45 >
46 <FrameLayout
47 android:id="@+id/voicemail_status"
48 android:layout_width="match_parent"
49 android:layout_height="wrap_content"
50 android:layout_alignParentLeft="true"
51 android:layout_alignParentTop="true"
52 android:visibility="gone"
53 >
54 <include layout="@layout/call_log_voicemail_status"/>
55 </FrameLayout>
56
57 <view
58 class="com.android.contacts.widget.ProportionalLayout"
59 android:id="@+id/contact_background_sizer"
60 android:layout_width="match_parent"
61 android:layout_height="wrap_content"
62 android:layout_alignParentLeft="true"
63 android:layout_below="@id/voicemail_status"
64 ex:ratio="0.5"
65 ex:direction="widthToHeight"
66 >
67 <ImageView
68 android:id="@+id/contact_background"
69 android:layout_width="match_parent"
70 android:layout_height="0dip"
71 android:adjustViewBounds="true"
72 android:scaleType="centerCrop"
73 />
74 </view>
75 <LinearLayout
76 android:id="@+id/blue_separator"
77 android:layout_width="match_parent"
78 android:layout_height="1dip"
79 android:background="@android:color/holo_blue_light"
80 android:layout_below="@+id/contact_background_sizer"
81 />
Flavio Lerdad1333a22011-08-11 16:19:47 +010082 <View
83 android:id="@+id/photo_text_bar"
84 android:layout_width="match_parent"
85 android:layout_height="42dip"
86 android:background="#7F000000"
87 android:layout_alignParentLeft="true"
88 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"
95 android:layout_alignRight="@id/photo_text_bar"
96 android:layout_alignBottom="@id/photo_text_bar"
97 android:layout_alignTop="@id/photo_text_bar"
98 android:layout_marginRight="@dimen/call_log_outer_margin"
99 />
100 <TextView
101 android:id="@+id/header_text"
102 android:layout_width="wrap_content"
103 android:layout_height="0dip"
104 android:layout_alignLeft="@id/photo_text_bar"
105 android:layout_toLeftOf="@id/main_action"
106 android:layout_alignTop="@id/photo_text_bar"
107 android:layout_alignBottom="@id/photo_text_bar"
108 android:layout_marginRight="@dimen/call_log_inner_margin"
109 android:layout_marginLeft="@dimen/call_detail_contact_name_margin"
110 android:gravity="center_vertical"
111 android:textColor="?attr/call_log_primary_text_color"
Flavio Lerda35be86e2011-08-12 14:13:22 +0100112 android:textAppearance="?android:attr/textAppearanceMedium"
Flavio Lerdad1333a22011-08-11 16:19:47 +0100113 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"
119 android:layout_alignLeft="@id/contact_background_sizer"
120 android:layout_alignTop="@id/contact_background_sizer"
121 android:layout_alignRight="@id/contact_background_sizer"
122 android:layout_alignBottom="@id/contact_background_sizer"
123 android:background="?android:attr/selectableItemBackground"
124 />
Flavio Lerdab5a3f5c2011-09-21 19:27:33 +0100125 <LinearLayout
126 android:id="@+id/voicemail_container"
127 android:layout_width="match_parent"
128 android:layout_height="wrap_content"
129 android:paddingBottom="@dimen/call_detail_button_spacing"
130 android:layout_below="@id/blue_separator"
Flavio Lerdab5a3f5c2011-09-21 19:27:33 +0100131 >
132 <!-- The voicemail fragment will be put here. -->
133 </LinearLayout>
Makoto Onuki5ff2dfc2012-04-19 15:00:20 -0700134 <FrameLayout
135 android:id="@+id/call_and_sms"
Flavio Lerdad1333a22011-08-11 16:19:47 +0100136 android:layout_width="match_parent"
Makoto Onuki5ff2dfc2012-04-19 15:00:20 -0700137 android:layout_height="@dimen/call_log_list_item_height"
Flavio Lerdadd18a802011-09-05 14:39:13 +0100138 android:layout_marginBottom="@dimen/call_detail_button_spacing"
Flavio Lerdad1333a22011-08-11 16:19:47 +0100139 android:layout_below="@id/voicemail_container"
Makoto Onuki5ff2dfc2012-04-19 15:00:20 -0700140 android:gravity="center_vertical"
141 android:background="@drawable/dialpad_background"
Flavio Lerdad1333a22011-08-11 16:19:47 +0100142 >
Makoto Onuki5ff2dfc2012-04-19 15:00:20 -0700143 <LinearLayout
144 android:id="@+id/call_and_sms_main_action"
Flavio Lerdad1333a22011-08-11 16:19:47 +0100145 android:layout_width="match_parent"
Makoto Onuki5ff2dfc2012-04-19 15:00:20 -0700146 android:layout_height="match_parent"
Flavio Lerdad1333a22011-08-11 16:19:47 +0100147 android:orientation="horizontal"
Makoto Onuki5ff2dfc2012-04-19 15:00:20 -0700148 android:focusable="true"
149 android:background="?android:attr/selectableItemBackground"
150 >
Flavio Lerdad1333a22011-08-11 16:19:47 +0100151
Makoto Onuki5ff2dfc2012-04-19 15:00:20 -0700152 <LinearLayout
Flavio Lerdad1333a22011-08-11 16:19:47 +0100153 android:layout_width="0dip"
154 android:layout_height="match_parent"
155 android:layout_weight="1"
156 android:paddingLeft="@dimen/call_log_indent_margin"
157 android:orientation="vertical"
158 android:gravity="center_vertical"
Flavio Lerdad1333a22011-08-11 16:19:47 +0100159 >
160
Flavio Lerda35be86e2011-08-12 14:13:22 +0100161 <TextView android:id="@+id/call_and_sms_text"
Flavio Lerdad1333a22011-08-11 16:19:47 +0100162 android:layout_width="wrap_content"
163 android:layout_height="wrap_content"
Flavio Lerda88be53d2011-11-17 00:31:34 +0000164 android:paddingRight="@dimen/call_log_icon_margin"
Flavio Lerda35be86e2011-08-12 14:13:22 +0100165 android:textAppearance="?android:attr/textAppearanceMedium"
Flavio Lerdafca72fa2011-08-28 19:08:01 +0100166 android:textColor="?attr/call_log_primary_text_color"
Flavio Lerda88be53d2011-11-17 00:31:34 +0000167 android:singleLine="true"
168 android:ellipsize="end"
Flavio Lerdad1333a22011-08-11 16:19:47 +0100169 />
170
Flavio Lerda35be86e2011-08-12 14:13:22 +0100171 <TextView android:id="@+id/call_and_sms_label"
Flavio Lerdad1333a22011-08-11 16:19:47 +0100172 android:layout_width="wrap_content"
173 android:layout_height="wrap_content"
Flavio Lerda88be53d2011-11-17 00:31:34 +0000174 android:paddingRight="@dimen/call_log_icon_margin"
Flavio Lerda35be86e2011-08-12 14:13:22 +0100175 android:textAppearance="?android:attr/textAppearanceSmall"
Flavio Lerdafca72fa2011-08-28 19:08:01 +0100176 android:textColor="?attr/call_log_primary_text_color"
Flavio Lerda35be86e2011-08-12 14:13:22 +0100177 android:textAllCaps="true"
Flavio Lerda88be53d2011-11-17 00:31:34 +0000178 android:singleLine="true"
179 android:ellipsize="end"
Flavio Lerda35be86e2011-08-12 14:13:22 +0100180 />
Flavio Lerdad1333a22011-08-11 16:19:47 +0100181 </LinearLayout>
182
183 <View android:id="@+id/call_and_sms_divider"
184 android:layout_width="1px"
185 android:layout_height="32dip"
186 android:background="@drawable/ic_divider_dashed_holo_dark"
187 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"
193 android:paddingLeft="@dimen/call_log_inner_margin"
194 android:paddingRight="@dimen/call_log_outer_margin"
195 android:gravity="center"
196 android:scaleType="centerInside"
197 android:focusable="true"
Daisuke Miyakawa2c6aa792011-09-13 15:34:53 -0700198 android:background="?android:attr/selectableItemBackground"
Flavio Lerdad1333a22011-08-11 16:19:47 +0100199 />
200 </LinearLayout>
201 </FrameLayout>
202 </RelativeLayout>
Flavio Lerdafd1b98b2011-08-24 19:55:15 +0100203
204 <!--
205 Used to hide the UI when playing a voicemail and the proximity sensor
206 is detecting something near the screen.
207 -->
208 <View
209 android:id="@+id/blank"
210 android:layout_width="match_parent"
211 android:layout_height="match_parent"
212 android:layout_alignParentLeft="true"
213 android:layout_alignParentTop="true"
Makoto Onuki5ff2dfc2012-04-19 15:00:20 -0700214 android:background="@android:color/black"
Flavio Lerdafd1b98b2011-08-24 19:55:15 +0100215 android:visibility="gone"
Hugo Hudsonb2ef6d82011-09-09 16:11:59 +0100216 android:clickable="true"
Flavio Lerdafd1b98b2011-08-24 19:55:15 +0100217 />
Flavio Lerda9cafe472011-06-08 14:06:13 +0100218</RelativeLayout>