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" |
| 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 Lerda | 9cafe47 | 2011-06-08 14:06:13 +0100 | [diff] [blame] | 209 | </RelativeLayout> |