blob: 714bbd881d64ddd9ffcb08254adbccbdfeeb94c0 [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"
Daniel Lehmann2e95ad02011-07-28 18:30:01 -070018 xmlns:ex="http://schemas.android.com/apk/res/com.android.contacts"
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"
The Android Open Source Project7aa0e4c2009-03-03 19:32:21 -080023>
Flavio Lerdad1333a22011-08-11 16:19:47 +010024 <!--
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 -->
Flavio Lerda9a208cc2011-07-12 21:05:47 +010029 <ListView
Flavio Lerda5592b752011-07-12 18:47:36 +010030 android:id="@+id/history"
Romain Guy6304c0b2010-01-08 15:06:49 -080031 android:layout_width="match_parent"
Flavio Lerda9cafe472011-06-08 14:06:13 +010032 android:layout_height="wrap_content"
33 android:layout_alignParentLeft="true"
Flavio Lerdad1333a22011-08-11 16:19:47 +010034 android:layout_alignParentTop="true"
Flavio Lerda8ebfa3d2011-08-10 14:35:22 +010035 android:background="@android:color/black"
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 />
82 <LinearLayout
83 android:id="@+id/voicemail_container"
84 android:layout_width="match_parent"
85 android:layout_height="wrap_content"
86 android:layout_below="@id/blue_separator"
87 android:background="@android:color/black"
88 >
89 <!-- The voicemail fragment will be put here. -->
90 </LinearLayout>
91 <View
92 android:id="@+id/photo_text_bar"
93 android:layout_width="match_parent"
94 android:layout_height="42dip"
95 android:background="#7F000000"
96 android:layout_alignParentLeft="true"
97 android:layout_alignBottom="@id/contact_background_sizer"
98 />
99 <ImageView
100 android:id="@+id/main_action"
101 android:layout_width="wrap_content"
102 android:layout_height="0dip"
103 android:scaleType="center"
104 android:layout_alignRight="@id/photo_text_bar"
105 android:layout_alignBottom="@id/photo_text_bar"
106 android:layout_alignTop="@id/photo_text_bar"
107 android:layout_marginRight="@dimen/call_log_outer_margin"
108 />
109 <TextView
110 android:id="@+id/header_text"
111 android:layout_width="wrap_content"
112 android:layout_height="0dip"
113 android:layout_alignLeft="@id/photo_text_bar"
114 android:layout_toLeftOf="@id/main_action"
115 android:layout_alignTop="@id/photo_text_bar"
116 android:layout_alignBottom="@id/photo_text_bar"
117 android:layout_marginRight="@dimen/call_log_inner_margin"
118 android:layout_marginLeft="@dimen/call_detail_contact_name_margin"
119 android:gravity="center_vertical"
120 android:textColor="?attr/call_log_primary_text_color"
121 android:textSize="18sp"
122 android:singleLine="true"
123 />
124 <ImageButton
125 android:id="@+id/main_action_push_layer"
126 android:layout_width="match_parent"
127 android:layout_height="match_parent"
128 android:layout_alignLeft="@id/contact_background_sizer"
129 android:layout_alignTop="@id/contact_background_sizer"
130 android:layout_alignRight="@id/contact_background_sizer"
131 android:layout_alignBottom="@id/contact_background_sizer"
132 android:background="?android:attr/selectableItemBackground"
133 />
134 <FrameLayout android:id="@+id/call_and_sms_container"
135 android:layout_width="match_parent"
136 android:layout_height="wrap_content"
137 android:layout_below="@id/voicemail_container"
138 android:background="@android:color/black"
139 >
140 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
141 android:id="@+id/call_and_sms"
142 android:layout_width="match_parent"
143 android:layout_height="@dimen/call_log_list_item_height"
144 android:orientation="horizontal"
145 android:layout_marginTop="@dimen/call_log_icon_margin"
146 android:gravity="center_vertical"
147 android:background="@drawable/dialpad_background"
148 >
149
150 <LinearLayout android:id="@+id/call_and_sms_main_action"
151 android:layout_width="0dip"
152 android:layout_height="match_parent"
153 android:layout_weight="1"
154 android:paddingLeft="@dimen/call_log_indent_margin"
155 android:orientation="vertical"
156 android:gravity="center_vertical"
157 android:focusable="true"
158 android:background="@drawable/btn_dial"
159 >
160
161 <TextView android:id="@+id/call_and_sms_text1"
162 android:layout_width="wrap_content"
163 android:layout_height="wrap_content"
164 android:textAppearance="?android:attr/textAppearanceLarge"
165 />
166
167 <LinearLayout android:id="@+id/call_and_sms_line2"
168 android:layout_width="wrap_content"
169 android:layout_height="wrap_content"
170 android:orientation="horizontal"
171 >
172 <TextView android:id="@+id/call_and_sms_label"
173 android:layout_width="wrap_content"
174 android:layout_height="wrap_content"
175 android:layout_marginRight="5dip"
176 android:textAppearance="?android:attr/textAppearanceSmall"
177 android:textStyle="bold"
178 />
179
180 <TextView android:id="@+id/call_and_sms_number"
181 android:layout_width="wrap_content"
182 android:layout_height="wrap_content"
183 android:textAppearance="?android:attr/textAppearanceSmall"
184 />
185 </LinearLayout>
186
187 </LinearLayout>
188
189 <View android:id="@+id/call_and_sms_divider"
190 android:layout_width="1px"
191 android:layout_height="32dip"
192 android:background="@drawable/ic_divider_dashed_holo_dark"
193 android:layout_gravity="center_vertical"
194 />
195
196 <ImageView android:id="@+id/call_and_sms_icon"
197 android:layout_width="@color/call_log_voicemail_highlight_color"
198 android:layout_height="match_parent"
199 android:paddingLeft="@dimen/call_log_inner_margin"
200 android:paddingRight="@dimen/call_log_outer_margin"
201 android:gravity="center"
202 android:scaleType="centerInside"
203 android:focusable="true"
204 android:background="@drawable/btn_dial"
205 />
206 </LinearLayout>
207 </FrameLayout>
208 </RelativeLayout>
Flavio Lerda9cafe472011-06-08 14:06:13 +0100209</RelativeLayout>