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 | 9cafe47 | 2011-06-08 14:06:13 +0100 | [diff] [blame] | 22 | android:orientation="horizontal" |
| 23 | android:gravity="top" |
Flavio Lerda | 4e63bab | 2011-08-10 18:26:46 +0100 | [diff] [blame^] | 24 | android:visibility="gone" |
The Android Open Source Project | 7aa0e4c | 2009-03-03 19:32:21 -0800 | [diff] [blame] | 25 | > |
Debashish Chatterjee | 2f49769 | 2011-07-19 17:23:15 +0100 | [diff] [blame] | 26 | <FrameLayout |
| 27 | android:id="@+id/voicemail_status" |
Debashish Chatterjee | 2f49769 | 2011-07-19 17:23:15 +0100 | [diff] [blame] | 28 | android:layout_width="match_parent" |
| 29 | android:layout_height="wrap_content" |
| 30 | android:layout_alignParentLeft="true" |
Flavio Lerda | d44e83a | 2011-07-24 23:10:17 +0100 | [diff] [blame] | 31 | android:layout_alignParentTop="true" |
Debashish Chatterjee | 2f49769 | 2011-07-19 17:23:15 +0100 | [diff] [blame] | 32 | android:visibility="gone" |
| 33 | > |
| 34 | <include layout="@layout/call_log_voicemail_status"/> |
| 35 | </FrameLayout> |
| 36 | |
Daniel Lehmann | 2e95ad0 | 2011-07-28 18:30:01 -0700 | [diff] [blame] | 37 | <view |
| 38 | class="com.android.contacts.widget.ProportionalLayout" |
| 39 | android:id="@+id/contact_background_sizer" |
Romain Guy | 6304c0b | 2010-01-08 15:06:49 -0800 | [diff] [blame] | 40 | android:layout_width="match_parent" |
Daniel Lehmann | 2e95ad0 | 2011-07-28 18:30:01 -0700 | [diff] [blame] | 41 | android:layout_height="wrap_content" |
Flavio Lerda | 9cafe47 | 2011-06-08 14:06:13 +0100 | [diff] [blame] | 42 | android:layout_alignParentLeft="true" |
Debashish Chatterjee | 2f49769 | 2011-07-19 17:23:15 +0100 | [diff] [blame] | 43 | android:layout_below="@id/voicemail_status" |
Daniel Lehmann | 2e95ad0 | 2011-07-28 18:30:01 -0700 | [diff] [blame] | 44 | ex:ratio="0.5" |
| 45 | ex:direction="widthToHeight" |
| 46 | > |
| 47 | <ImageView |
| 48 | android:id="@+id/contact_background" |
| 49 | android:layout_width="match_parent" |
| 50 | android:layout_height="0dip" |
| 51 | android:adjustViewBounds="true" |
| 52 | android:scaleType="centerCrop" |
Daniel Lehmann | 2e95ad0 | 2011-07-28 18:30:01 -0700 | [diff] [blame] | 53 | /> |
| 54 | </view> |
Flavio Lerda | fb63c43 | 2011-07-07 17:16:53 +0100 | [diff] [blame] | 55 | <LinearLayout |
Hugo Hudson | 70278ed | 2011-07-31 10:52:36 +0100 | [diff] [blame] | 56 | android:id="@+id/blue_separator" |
| 57 | android:layout_width="match_parent" |
| 58 | android:layout_height="1dip" |
| 59 | android:background="@android:color/holo_blue_light" |
| 60 | android:layout_below="@+id/contact_background_sizer" |
| 61 | /> |
| 62 | <LinearLayout |
Hugo Hudson | b002f51 | 2011-07-15 17:41:12 +0100 | [diff] [blame] | 63 | android:id="@+id/voicemail_container" |
| 64 | android:layout_width="match_parent" |
| 65 | android:layout_height="wrap_content" |
Hugo Hudson | 70278ed | 2011-07-31 10:52:36 +0100 | [diff] [blame] | 66 | android:layout_below="@id/blue_separator" |
Hugo Hudson | b002f51 | 2011-07-15 17:41:12 +0100 | [diff] [blame] | 67 | > |
Hugo Hudson | a9ad694 | 2011-07-29 17:06:04 +0100 | [diff] [blame] | 68 | <!-- The voicemail fragment will be put here. --> |
Hugo Hudson | b002f51 | 2011-07-15 17:41:12 +0100 | [diff] [blame] | 69 | </LinearLayout> |
Daniel Lehmann | d260de4 | 2011-08-01 18:08:38 -0700 | [diff] [blame] | 70 | <View |
| 71 | android:id="@+id/photo_text_bar" |
Flavio Lerda | fb63c43 | 2011-07-07 17:16:53 +0100 | [diff] [blame] | 72 | android:layout_width="match_parent" |
Daniel Lehmann | d260de4 | 2011-08-01 18:08:38 -0700 | [diff] [blame] | 73 | android:layout_height="42dip" |
Daniel Lehmann | dbd80ee | 2011-08-01 16:25:52 -0700 | [diff] [blame] | 74 | android:background="#7F000000" |
Flavio Lerda | fb63c43 | 2011-07-07 17:16:53 +0100 | [diff] [blame] | 75 | android:layout_alignParentLeft="true" |
Daniel Lehmann | 2e95ad0 | 2011-07-28 18:30:01 -0700 | [diff] [blame] | 76 | android:layout_alignBottom="@id/contact_background_sizer" |
Flavio Lerda | fb63c43 | 2011-07-07 17:16:53 +0100 | [diff] [blame] | 77 | /> |
Daniel Lehmann | d260de4 | 2011-08-01 18:08:38 -0700 | [diff] [blame] | 78 | <ImageView |
| 79 | android:id="@+id/main_action" |
| 80 | android:layout_width="wrap_content" |
| 81 | android:layout_height="0dip" |
| 82 | android:scaleType="center" |
| 83 | android:layout_alignRight="@id/photo_text_bar" |
| 84 | android:layout_alignBottom="@id/photo_text_bar" |
| 85 | android:layout_alignTop="@id/photo_text_bar" |
| 86 | android:layout_marginRight="@dimen/call_log_outer_margin" |
| 87 | /> |
Flavio Lerda | b88abaa | 2011-08-02 23:38:36 +0100 | [diff] [blame] | 88 | <TextView |
| 89 | android:id="@+id/header_text" |
Daniel Lehmann | d260de4 | 2011-08-01 18:08:38 -0700 | [diff] [blame] | 90 | android:layout_width="wrap_content" |
| 91 | android:layout_height="0dip" |
| 92 | android:layout_alignLeft="@id/photo_text_bar" |
Daniel Lehmann | d260de4 | 2011-08-01 18:08:38 -0700 | [diff] [blame] | 93 | android:layout_toLeftOf="@id/main_action" |
Flavio Lerda | 8ebfa3d | 2011-08-10 14:35:22 +0100 | [diff] [blame] | 94 | android:layout_alignTop="@id/photo_text_bar" |
Daniel Lehmann | d260de4 | 2011-08-01 18:08:38 -0700 | [diff] [blame] | 95 | android:layout_alignBottom="@id/photo_text_bar" |
| 96 | android:layout_marginRight="@dimen/call_log_inner_margin" |
| 97 | android:layout_marginLeft="@dimen/call_detail_contact_name_margin" |
Flavio Lerda | 8ebfa3d | 2011-08-10 14:35:22 +0100 | [diff] [blame] | 98 | android:gravity="center_vertical" |
Flavio Lerda | b88abaa | 2011-08-02 23:38:36 +0100 | [diff] [blame] | 99 | android:textColor="?attr/call_log_primary_text_color" |
| 100 | android:textSize="18sp" |
| 101 | android:singleLine="true" |
| 102 | /> |
Daniel Lehmann | d260de4 | 2011-08-01 18:08:38 -0700 | [diff] [blame] | 103 | <ImageButton |
| 104 | android:id="@+id/main_action_push_layer" |
| 105 | android:layout_width="match_parent" |
| 106 | android:layout_height="match_parent" |
| 107 | android:layout_alignLeft="@id/contact_background_sizer" |
| 108 | android:layout_alignTop="@id/contact_background_sizer" |
| 109 | android:layout_alignRight="@id/contact_background_sizer" |
| 110 | android:layout_alignBottom="@id/contact_background_sizer" |
| 111 | android:background="?android:attr/selectableItemBackground" |
| 112 | /> |
Flavio Lerda | 5592b75 | 2011-07-12 18:47:36 +0100 | [diff] [blame] | 113 | <ListView |
| 114 | android:id="@android:id/list" |
| 115 | android:layout_width="match_parent" |
| 116 | android:layout_height="wrap_content" |
Hugo Hudson | b002f51 | 2011-07-15 17:41:12 +0100 | [diff] [blame] | 117 | android:layout_below="@id/voicemail_container" |
Flavio Lerda | 8ebfa3d | 2011-08-10 14:35:22 +0100 | [diff] [blame] | 118 | android:layout_marginTop="@dimen/call_log_icon_margin" |
Flavio Lerda | 5592b75 | 2011-07-12 18:47:36 +0100 | [diff] [blame] | 119 | android:background="?attr/call_log_primary_background_color" |
| 120 | /> |
Flavio Lerda | 9a208cc | 2011-07-12 21:05:47 +0100 | [diff] [blame] | 121 | <ListView |
Flavio Lerda | 5592b75 | 2011-07-12 18:47:36 +0100 | [diff] [blame] | 122 | android:id="@+id/history" |
Romain Guy | 6304c0b | 2010-01-08 15:06:49 -0800 | [diff] [blame] | 123 | android:layout_width="match_parent" |
Flavio Lerda | 9cafe47 | 2011-06-08 14:06:13 +0100 | [diff] [blame] | 124 | android:layout_height="wrap_content" |
Flavio Lerda | 8ebfa3d | 2011-08-10 14:35:22 +0100 | [diff] [blame] | 125 | android:layout_marginTop="@dimen/call_log_icon_margin" |
Flavio Lerda | 9cafe47 | 2011-06-08 14:06:13 +0100 | [diff] [blame] | 126 | android:layout_alignParentLeft="true" |
Flavio Lerda | fb63c43 | 2011-07-07 17:16:53 +0100 | [diff] [blame] | 127 | android:layout_below="@android:id/list" |
Flavio Lerda | 8ebfa3d | 2011-08-10 14:35:22 +0100 | [diff] [blame] | 128 | android:background="@android:color/black" |
Flavio Lerda | 9a208cc | 2011-07-12 21:05:47 +0100 | [diff] [blame] | 129 | /> |
Flavio Lerda | 9cafe47 | 2011-06-08 14:06:13 +0100 | [diff] [blame] | 130 | </RelativeLayout> |