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" |
Romain Guy | 6304c0b | 2010-01-08 15:06:49 -0800 | [diff] [blame] | 18 | android:layout_width="match_parent" |
| 19 | android:layout_height="match_parent" |
Flavio Lerda | 9cafe47 | 2011-06-08 14:06:13 +0100 | [diff] [blame] | 20 | android:orientation="horizontal" |
| 21 | android:gravity="top" |
| 22 | android:paddingTop="?attr/call_detail_top_gap" |
| 23 | android:background="?attr/call_detail_transparent_background" |
The Android Open Source Project | 7aa0e4c | 2009-03-03 19:32:21 -0800 | [diff] [blame] | 24 | > |
Flavio Lerda | 9cafe47 | 2011-06-08 14:06:13 +0100 | [diff] [blame] | 25 | <ImageView |
| 26 | android:id="@+id/contact_background" |
Romain Guy | 6304c0b | 2010-01-08 15:06:49 -0800 | [diff] [blame] | 27 | android:layout_width="match_parent" |
Flavio Lerda | 9cafe47 | 2011-06-08 14:06:13 +0100 | [diff] [blame] | 28 | android:layout_height="?attr/call_detail_contact_background_height" |
| 29 | android:layout_alignParentLeft="true" |
| 30 | android:layout_alignParentTop="true" |
| 31 | android:adjustViewBounds="true" |
Flavio Lerda | c5dbd56 | 2011-06-10 10:10:02 +0100 | [diff] [blame^] | 32 | android:scaleType="centerCrop" |
Flavio Lerda | 9cafe47 | 2011-06-08 14:06:13 +0100 | [diff] [blame] | 33 | |
| 34 | android:background="@drawable/ic_contact_picture" |
| 35 | /> |
| 36 | <View |
| 37 | android:id="@+id/contact_background_overlay" |
| 38 | android:layout_width="match_parent" |
| 39 | android:layout_height="?attr/call_detail_contact_background_height" |
| 40 | android:layout_alignParentLeft="true" |
| 41 | android:layout_alignParentTop="true" |
| 42 | android:background="?attr/call_detail_primary_background_color" |
| 43 | android:alpha="?attr/call_detail_contact_background_overlay_alpha" |
| 44 | /> |
| 45 | |
| 46 | <RelativeLayout |
| 47 | android:id="@+id/photo_panel" |
| 48 | android:layout_width="match_parent" |
| 49 | android:layout_height="?attr/call_detail_contact_background_height" |
| 50 | android:layout_alignParentLeft="true" |
| 51 | android:layout_alignParentTop="true" |
| 52 | android:paddingBottom="10dp" |
The Android Open Source Project | 7aa0e4c | 2009-03-03 19:32:21 -0800 | [diff] [blame] | 53 | > |
Flavio Lerda | 9cafe47 | 2011-06-08 14:06:13 +0100 | [diff] [blame] | 54 | <ImageView |
| 55 | android:id="@+id/contact_photo" |
| 56 | android:layout_width="?attr/call_detail_contact_photo_size" |
| 57 | android:layout_height="?attr/call_detail_contact_photo_size" |
| 58 | android:layout_alignParentLeft="true" |
| 59 | android:layout_alignParentBottom="true" |
| 60 | |
| 61 | android:background="@drawable/ic_contact_picture" |
The Android Open Source Project | 7aa0e4c | 2009-03-03 19:32:21 -0800 | [diff] [blame] | 62 | /> |
Flavio Lerda | 9cafe47 | 2011-06-08 14:06:13 +0100 | [diff] [blame] | 63 | <RelativeLayout |
The Android Open Source Project | 7aa0e4c | 2009-03-03 19:32:21 -0800 | [diff] [blame] | 64 | android:layout_width="wrap_content" |
| 65 | android:layout_height="wrap_content" |
Flavio Lerda | 9cafe47 | 2011-06-08 14:06:13 +0100 | [diff] [blame] | 66 | android:layout_alignParentBottom="true" |
| 67 | android:layout_toRightOf="@id/contact_photo" |
| 68 | android:layout_marginLeft="10dp" |
The Android Open Source Project | 7aa0e4c | 2009-03-03 19:32:21 -0800 | [diff] [blame] | 69 | > |
Flavio Lerda | 7ea6ba0 | 2011-06-09 10:15:49 +0100 | [diff] [blame] | 70 | <include layout="@layout/call_log_phone_call_details" /> |
Flavio Lerda | 9cafe47 | 2011-06-08 14:06:13 +0100 | [diff] [blame] | 71 | </RelativeLayout> |
| 72 | <RelativeLayout |
| 73 | android:layout_width="wrap_content" |
| 74 | android:layout_height="?attr/call_detail_action_icon_size" |
| 75 | android:layout_alignParentRight="true" |
| 76 | android:layout_alignParentBottom="true" |
| 77 | android:layout_marginBottom="10dp" |
| 78 | > |
| 79 | <ImageView |
| 80 | android:id="@+id/call" |
| 81 | android:layout_width="?attr/call_detail_action_icon_size" |
| 82 | android:layout_height="?attr/call_detail_action_icon_size" |
| 83 | android:layout_alignParentRight="true" |
| 84 | android:gravity="center_vertical" |
| 85 | android:src="@android:drawable/sym_action_call" |
| 86 | android:scaleType="center" |
| 87 | /> |
| 88 | <View |
| 89 | android:id="@+id/divider" |
| 90 | android:layout_width="1px" |
| 91 | android:layout_height="wrap_content" |
| 92 | android:layout_marginTop="5dip" |
| 93 | android:layout_marginBottom="5dip" |
| 94 | android:layout_toLeftOf="@id/call" |
| 95 | android:layout_marginLeft="11dip" |
| 96 | android:background="#FFFFFF" |
| 97 | /> |
| 98 | </RelativeLayout> |
| 99 | </RelativeLayout> |
| 100 | <RelativeLayout |
| 101 | android:id="@+id/call_panel" |
Romain Guy | 6304c0b | 2010-01-08 15:06:49 -0800 | [diff] [blame] | 102 | android:layout_width="match_parent" |
Flavio Lerda | 9cafe47 | 2011-06-08 14:06:13 +0100 | [diff] [blame] | 103 | android:layout_height="wrap_content" |
| 104 | android:layout_alignParentLeft="true" |
| 105 | android:layout_below="@id/photo_panel" |
| 106 | android:paddingBottom="10dp" |
| 107 | android:paddingTop="10dp" |
| 108 | android:paddingLeft="80dp" |
| 109 | android:background="#FFFFFF" |
The Android Open Source Project | 7aa0e4c | 2009-03-03 19:32:21 -0800 | [diff] [blame] | 110 | > |
Flavio Lerda | 9cafe47 | 2011-06-08 14:06:13 +0100 | [diff] [blame] | 111 | <TextView |
| 112 | android:id="@+id/time" |
| 113 | android:layout_width="wrap_content" |
The Android Open Source Project | 7aa0e4c | 2009-03-03 19:32:21 -0800 | [diff] [blame] | 114 | android:layout_height="wrap_content" |
Flavio Lerda | 9cafe47 | 2011-06-08 14:06:13 +0100 | [diff] [blame] | 115 | android:layout_alignParentLeft="true" |
The Android Open Source Project | 7aa0e4c | 2009-03-03 19:32:21 -0800 | [diff] [blame] | 116 | /> |
Flavio Lerda | 9cafe47 | 2011-06-08 14:06:13 +0100 | [diff] [blame] | 117 | <TextView |
| 118 | android:id="@+id/duration" |
| 119 | android:layout_width="wrap_content" |
| 120 | android:layout_height="wrap_content" |
| 121 | android:layout_alignParentLeft="true" |
| 122 | android:layout_below="@id/time" |
| 123 | android:layout_alignLeft="@id/time" |
| 124 | /> |
| 125 | <ImageView |
| 126 | android:id="@+id/delete" |
| 127 | android:layout_width="?attr/call_detail_action_icon_size" |
| 128 | android:layout_height="?attr/call_detail_action_icon_size" |
| 129 | android:layout_alignParentRight="true" |
| 130 | android:scaleType="center" |
| 131 | android:gravity="center_vertical" |
| 132 | android:src="@android:drawable/sym_action_call" |
| 133 | android:visibility="gone" |
| 134 | /> |
| 135 | </RelativeLayout> |
| 136 | <ListView |
| 137 | android:id="@android:id/list" |
| 138 | android:layout_width="match_parent" |
| 139 | android:layout_height="wrap_content" |
| 140 | android:layout_below="@id/call_panel" |
| 141 | android:background="?attr/call_detail_secondary_background_color" |
| 142 | /> |
| 143 | </RelativeLayout> |