The Android Open Source Project | 7aa0e4c | 2009-03-03 19:32:21 -0800 | [diff] [blame] | 1 | <?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 Lerda | 9cafe47 | 2011-06-08 14:06:13 +0100 | [diff] [blame] | 7 | |
The Android Open Source Project | 7aa0e4c | 2009-03-03 19:32:21 -0800 | [diff] [blame] | 8 | http://www.apache.org/licenses/LICENSE-2.0 |
Flavio Lerda | 9cafe47 | 2011-06-08 14:06:13 +0100 | [diff] [blame] | 9 | |
The Android Open Source Project | 7aa0e4c | 2009-03-03 19:32:21 -0800 | [diff] [blame] | 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 | |
Flavio Lerda | 9cafe47 | 2011-06-08 14:06:13 +0100 | [diff] [blame] | 17 | <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" |
Daniel Lehmann | 2e95ad0 | 2011-07-28 18:30:01 -0700 | [diff] [blame] | 18 | xmlns:ex="http://schemas.android.com/apk/res/com.android.contacts" |
Flavio Lerda | 4e63bab | 2011-08-10 18:26:46 +0100 | [diff] [blame] | 19 | android:id="@+id/call_detail" |
Romain Guy | 6304c0b | 2010-01-08 15:06:49 -0800 | [diff] [blame] | 20 | android:layout_width="match_parent" |
| 21 | android:layout_height="match_parent" |
Flavio Lerda | 4e63bab | 2011-08-10 18:26:46 +0100 | [diff] [blame] | 22 | android:visibility="gone" |
The Android Open Source Project | 7aa0e4c | 2009-03-03 19:32:21 -0800 | [diff] [blame] | 23 | > |
Flavio Lerda | d1333a2 | 2011-08-11 16:19:47 +0100 | [diff] [blame] | 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 | --> |
Flavio Lerda | 9a208cc | 2011-07-12 21:05:47 +0100 | [diff] [blame] | 29 | <ListView |
Flavio Lerda | 5592b75 | 2011-07-12 18:47:36 +0100 | [diff] [blame] | 30 | android:id="@+id/history" |
Romain Guy | 6304c0b | 2010-01-08 15:06:49 -0800 | [diff] [blame] | 31 | android:layout_width="match_parent" |
Flavio Lerda | 9cafe47 | 2011-06-08 14:06:13 +0100 | [diff] [blame] | 32 | android:layout_height="wrap_content" |
| 33 | android:layout_alignParentLeft="true" |
Flavio Lerda | d1333a2 | 2011-08-11 16:19:47 +0100 | [diff] [blame] | 34 | android:layout_alignParentTop="true" |
Flavio Lerda | 8ebfa3d | 2011-08-10 14:35:22 +0100 | [diff] [blame] | 35 | android:background="@android:color/black" |
Flavio Lerda | 9a208cc | 2011-07-12 21:05:47 +0100 | [diff] [blame] | 36 | /> |
Flavio Lerda | d1333a2 | 2011-08-11 16:19:47 +0100 | [diff] [blame] | 37 | |
| 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" |
Flavio Lerda | dd18a80 | 2011-09-05 14:39:13 +0100 | [diff] [blame] | 86 | android:paddingBottom="@dimen/call_detail_button_spacing" |
Flavio Lerda | d1333a2 | 2011-08-11 16:19:47 +0100 | [diff] [blame] | 87 | android:layout_below="@id/blue_separator" |
| 88 | android:background="@android:color/black" |
| 89 | > |
| 90 | <!-- The voicemail fragment will be put here. --> |
| 91 | </LinearLayout> |
| 92 | <View |
| 93 | android:id="@+id/photo_text_bar" |
| 94 | android:layout_width="match_parent" |
| 95 | android:layout_height="42dip" |
| 96 | android:background="#7F000000" |
| 97 | android:layout_alignParentLeft="true" |
| 98 | android:layout_alignBottom="@id/contact_background_sizer" |
| 99 | /> |
| 100 | <ImageView |
| 101 | android:id="@+id/main_action" |
| 102 | android:layout_width="wrap_content" |
| 103 | android:layout_height="0dip" |
| 104 | android:scaleType="center" |
| 105 | android:layout_alignRight="@id/photo_text_bar" |
| 106 | android:layout_alignBottom="@id/photo_text_bar" |
| 107 | android:layout_alignTop="@id/photo_text_bar" |
| 108 | android:layout_marginRight="@dimen/call_log_outer_margin" |
| 109 | /> |
| 110 | <TextView |
| 111 | android:id="@+id/header_text" |
| 112 | android:layout_width="wrap_content" |
| 113 | android:layout_height="0dip" |
| 114 | android:layout_alignLeft="@id/photo_text_bar" |
| 115 | android:layout_toLeftOf="@id/main_action" |
| 116 | android:layout_alignTop="@id/photo_text_bar" |
| 117 | android:layout_alignBottom="@id/photo_text_bar" |
| 118 | android:layout_marginRight="@dimen/call_log_inner_margin" |
| 119 | android:layout_marginLeft="@dimen/call_detail_contact_name_margin" |
| 120 | android:gravity="center_vertical" |
| 121 | android:textColor="?attr/call_log_primary_text_color" |
Flavio Lerda | 35be86e | 2011-08-12 14:13:22 +0100 | [diff] [blame] | 122 | android:textAppearance="?android:attr/textAppearanceMedium" |
Flavio Lerda | d1333a2 | 2011-08-11 16:19:47 +0100 | [diff] [blame] | 123 | android:singleLine="true" |
| 124 | /> |
| 125 | <ImageButton |
| 126 | android:id="@+id/main_action_push_layer" |
| 127 | android:layout_width="match_parent" |
| 128 | android:layout_height="match_parent" |
| 129 | android:layout_alignLeft="@id/contact_background_sizer" |
| 130 | android:layout_alignTop="@id/contact_background_sizer" |
| 131 | android:layout_alignRight="@id/contact_background_sizer" |
| 132 | android:layout_alignBottom="@id/contact_background_sizer" |
| 133 | android:background="?android:attr/selectableItemBackground" |
| 134 | /> |
| 135 | <FrameLayout android:id="@+id/call_and_sms_container" |
| 136 | android:layout_width="match_parent" |
| 137 | android:layout_height="wrap_content" |
Flavio Lerda | dd18a80 | 2011-09-05 14:39:13 +0100 | [diff] [blame] | 138 | android:layout_marginBottom="@dimen/call_detail_button_spacing" |
Flavio Lerda | d1333a2 | 2011-08-11 16:19:47 +0100 | [diff] [blame] | 139 | android:layout_below="@id/voicemail_container" |
| 140 | android:background="@android:color/black" |
| 141 | > |
| 142 | <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| 143 | android:id="@+id/call_and_sms" |
| 144 | android:layout_width="match_parent" |
| 145 | android:layout_height="@dimen/call_log_list_item_height" |
| 146 | android:orientation="horizontal" |
Flavio Lerda | d1333a2 | 2011-08-11 16:19:47 +0100 | [diff] [blame] | 147 | android:gravity="center_vertical" |
| 148 | android:background="@drawable/dialpad_background" |
| 149 | > |
| 150 | |
| 151 | <LinearLayout android:id="@+id/call_and_sms_main_action" |
| 152 | android:layout_width="0dip" |
| 153 | android:layout_height="match_parent" |
| 154 | android:layout_weight="1" |
| 155 | android:paddingLeft="@dimen/call_log_indent_margin" |
| 156 | android:orientation="vertical" |
| 157 | android:gravity="center_vertical" |
| 158 | android:focusable="true" |
| 159 | android:background="@drawable/btn_dial" |
| 160 | > |
| 161 | |
Flavio Lerda | 35be86e | 2011-08-12 14:13:22 +0100 | [diff] [blame] | 162 | <TextView android:id="@+id/call_and_sms_text" |
Flavio Lerda | d1333a2 | 2011-08-11 16:19:47 +0100 | [diff] [blame] | 163 | android:layout_width="wrap_content" |
| 164 | android:layout_height="wrap_content" |
Flavio Lerda | 35be86e | 2011-08-12 14:13:22 +0100 | [diff] [blame] | 165 | android:textAppearance="?android:attr/textAppearanceMedium" |
Flavio Lerda | fca72fa | 2011-08-28 19:08:01 +0100 | [diff] [blame] | 166 | android:textColor="?attr/call_log_primary_text_color" |
Flavio Lerda | d1333a2 | 2011-08-11 16:19:47 +0100 | [diff] [blame] | 167 | /> |
| 168 | |
Flavio Lerda | 35be86e | 2011-08-12 14:13:22 +0100 | [diff] [blame] | 169 | <TextView android:id="@+id/call_and_sms_label" |
Flavio Lerda | d1333a2 | 2011-08-11 16:19:47 +0100 | [diff] [blame] | 170 | android:layout_width="wrap_content" |
| 171 | android:layout_height="wrap_content" |
Flavio Lerda | 35be86e | 2011-08-12 14:13:22 +0100 | [diff] [blame] | 172 | android:textAppearance="?android:attr/textAppearanceSmall" |
Flavio Lerda | fca72fa | 2011-08-28 19:08:01 +0100 | [diff] [blame] | 173 | android:textColor="?attr/call_log_primary_text_color" |
Flavio Lerda | 35be86e | 2011-08-12 14:13:22 +0100 | [diff] [blame] | 174 | android:textAllCaps="true" |
| 175 | /> |
Flavio Lerda | d1333a2 | 2011-08-11 16:19:47 +0100 | [diff] [blame] | 176 | |
| 177 | </LinearLayout> |
| 178 | |
| 179 | <View android:id="@+id/call_and_sms_divider" |
| 180 | android:layout_width="1px" |
| 181 | android:layout_height="32dip" |
| 182 | android:background="@drawable/ic_divider_dashed_holo_dark" |
| 183 | android:layout_gravity="center_vertical" |
| 184 | /> |
| 185 | |
| 186 | <ImageView android:id="@+id/call_and_sms_icon" |
| 187 | android:layout_width="@color/call_log_voicemail_highlight_color" |
| 188 | android:layout_height="match_parent" |
| 189 | android:paddingLeft="@dimen/call_log_inner_margin" |
| 190 | android:paddingRight="@dimen/call_log_outer_margin" |
| 191 | android:gravity="center" |
| 192 | android:scaleType="centerInside" |
| 193 | android:focusable="true" |
| 194 | android:background="@drawable/btn_dial" |
| 195 | /> |
| 196 | </LinearLayout> |
| 197 | </FrameLayout> |
| 198 | </RelativeLayout> |
Flavio Lerda | fd1b98b | 2011-08-24 19:55:15 +0100 | [diff] [blame] | 199 | |
| 200 | <!-- |
| 201 | Used to hide the UI when playing a voicemail and the proximity sensor |
| 202 | is detecting something near the screen. |
| 203 | --> |
| 204 | <View |
| 205 | android:id="@+id/blank" |
| 206 | android:layout_width="match_parent" |
| 207 | android:layout_height="match_parent" |
| 208 | android:layout_alignParentLeft="true" |
| 209 | android:layout_alignParentTop="true" |
| 210 | android:background="#000000" |
| 211 | android:visibility="gone" |
Hugo Hudson | b2ef6d8 | 2011-09-09 16:11:59 +0100 | [diff] [blame^] | 212 | android:clickable="true" |
Flavio Lerda | fd1b98b | 2011-08-24 19:55:15 +0100 | [diff] [blame] | 213 | /> |
Flavio Lerda | 9cafe47 | 2011-06-08 14:06:13 +0100 | [diff] [blame] | 214 | </RelativeLayout> |