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" |
| 32 | android:scaleX="2.5" |
| 33 | android:scaleY="2.5" |
| 34 | |
| 35 | android:background="@drawable/ic_contact_picture" |
| 36 | /> |
| 37 | <View |
| 38 | android:id="@+id/contact_background_overlay" |
| 39 | android:layout_width="match_parent" |
| 40 | android:layout_height="?attr/call_detail_contact_background_height" |
| 41 | android:layout_alignParentLeft="true" |
| 42 | android:layout_alignParentTop="true" |
| 43 | android:background="?attr/call_detail_primary_background_color" |
| 44 | android:alpha="?attr/call_detail_contact_background_overlay_alpha" |
| 45 | /> |
| 46 | |
| 47 | <RelativeLayout |
| 48 | android:id="@+id/photo_panel" |
| 49 | android:layout_width="match_parent" |
| 50 | android:layout_height="?attr/call_detail_contact_background_height" |
| 51 | android:layout_alignParentLeft="true" |
| 52 | android:layout_alignParentTop="true" |
| 53 | android:paddingBottom="10dp" |
The Android Open Source Project | 7aa0e4c | 2009-03-03 19:32:21 -0800 | [diff] [blame] | 54 | > |
Flavio Lerda | 9cafe47 | 2011-06-08 14:06:13 +0100 | [diff] [blame] | 55 | <ImageView |
| 56 | android:id="@+id/contact_photo" |
| 57 | android:layout_width="?attr/call_detail_contact_photo_size" |
| 58 | android:layout_height="?attr/call_detail_contact_photo_size" |
| 59 | android:layout_alignParentLeft="true" |
| 60 | android:layout_alignParentBottom="true" |
| 61 | |
| 62 | android:background="@drawable/ic_contact_picture" |
The Android Open Source Project | 7aa0e4c | 2009-03-03 19:32:21 -0800 | [diff] [blame] | 63 | /> |
Flavio Lerda | 9cafe47 | 2011-06-08 14:06:13 +0100 | [diff] [blame] | 64 | <RelativeLayout |
The Android Open Source Project | 7aa0e4c | 2009-03-03 19:32:21 -0800 | [diff] [blame] | 65 | android:layout_width="wrap_content" |
| 66 | android:layout_height="wrap_content" |
Flavio Lerda | 9cafe47 | 2011-06-08 14:06:13 +0100 | [diff] [blame] | 67 | android:layout_alignParentBottom="true" |
| 68 | android:layout_toRightOf="@id/contact_photo" |
| 69 | android:layout_marginLeft="10dp" |
The Android Open Source Project | 7aa0e4c | 2009-03-03 19:32:21 -0800 | [diff] [blame] | 70 | > |
Flavio Lerda | 9cafe47 | 2011-06-08 14:06:13 +0100 | [diff] [blame] | 71 | <TextView |
| 72 | android:id="@+id/number" |
The Android Open Source Project | 7aa0e4c | 2009-03-03 19:32:21 -0800 | [diff] [blame] | 73 | android:layout_width="wrap_content" |
| 74 | android:layout_height="wrap_content" |
| 75 | android:textAppearance="?android:attr/textAppearanceSmall" |
Flavio Lerda | 9cafe47 | 2011-06-08 14:06:13 +0100 | [diff] [blame] | 76 | android:textColor="?attr/call_detail_primary_text_color" |
| 77 | android:layout_alignParentLeft="true" |
| 78 | android:layout_alignParentBottom="true" |
The Android Open Source Project | 7aa0e4c | 2009-03-03 19:32:21 -0800 | [diff] [blame] | 79 | /> |
Flavio Lerda | 9cafe47 | 2011-06-08 14:06:13 +0100 | [diff] [blame] | 80 | <TextView |
| 81 | android:id="@+id/call_type" |
The Android Open Source Project | 7aa0e4c | 2009-03-03 19:32:21 -0800 | [diff] [blame] | 82 | android:layout_width="wrap_content" |
| 83 | android:layout_height="wrap_content" |
| 84 | android:textAppearance="?android:attr/textAppearanceSmall" |
Flavio Lerda | 9cafe47 | 2011-06-08 14:06:13 +0100 | [diff] [blame] | 85 | android:textColor="?attr/call_detail_primary_text_color" |
| 86 | android:layout_alignParentLeft="true" |
| 87 | android:layout_above="@id/number" |
The Android Open Source Project | 7aa0e4c | 2009-03-03 19:32:21 -0800 | [diff] [blame] | 88 | /> |
Flavio Lerda | 9cafe47 | 2011-06-08 14:06:13 +0100 | [diff] [blame] | 89 | <TextView |
| 90 | android:id="@+id/name" |
| 91 | android:layout_width="wrap_content" |
| 92 | android:layout_height="wrap_content" |
| 93 | android:textAppearance="?android:attr/textAppearanceMedium" |
| 94 | android:textColor="?attr/call_detail_primary_text_color" |
| 95 | android:layout_alignParentLeft="true" |
| 96 | android:layout_above="@id/call_type" |
| 97 | android:paddingBottom="2dp" |
| 98 | /> |
| 99 | </RelativeLayout> |
| 100 | <RelativeLayout |
| 101 | android:layout_width="wrap_content" |
| 102 | android:layout_height="?attr/call_detail_action_icon_size" |
| 103 | android:layout_alignParentRight="true" |
| 104 | android:layout_alignParentBottom="true" |
| 105 | android:layout_marginBottom="10dp" |
| 106 | > |
| 107 | <ImageView |
| 108 | android:id="@+id/call" |
| 109 | android:layout_width="?attr/call_detail_action_icon_size" |
| 110 | android:layout_height="?attr/call_detail_action_icon_size" |
| 111 | android:layout_alignParentRight="true" |
| 112 | android:gravity="center_vertical" |
| 113 | android:src="@android:drawable/sym_action_call" |
| 114 | android:scaleType="center" |
| 115 | /> |
| 116 | <View |
| 117 | android:id="@+id/divider" |
| 118 | android:layout_width="1px" |
| 119 | android:layout_height="wrap_content" |
| 120 | android:layout_marginTop="5dip" |
| 121 | android:layout_marginBottom="5dip" |
| 122 | android:layout_toLeftOf="@id/call" |
| 123 | android:layout_marginLeft="11dip" |
| 124 | android:background="#FFFFFF" |
| 125 | /> |
| 126 | </RelativeLayout> |
| 127 | </RelativeLayout> |
| 128 | <RelativeLayout |
| 129 | android:id="@+id/call_panel" |
Romain Guy | 6304c0b | 2010-01-08 15:06:49 -0800 | [diff] [blame] | 130 | android:layout_width="match_parent" |
Flavio Lerda | 9cafe47 | 2011-06-08 14:06:13 +0100 | [diff] [blame] | 131 | android:layout_height="wrap_content" |
| 132 | android:layout_alignParentLeft="true" |
| 133 | android:layout_below="@id/photo_panel" |
| 134 | android:paddingBottom="10dp" |
| 135 | android:paddingTop="10dp" |
| 136 | android:paddingLeft="80dp" |
| 137 | android:background="#FFFFFF" |
The Android Open Source Project | 7aa0e4c | 2009-03-03 19:32:21 -0800 | [diff] [blame] | 138 | > |
Flavio Lerda | 9cafe47 | 2011-06-08 14:06:13 +0100 | [diff] [blame] | 139 | <TextView |
| 140 | android:id="@+id/time" |
| 141 | android:layout_width="wrap_content" |
The Android Open Source Project | 7aa0e4c | 2009-03-03 19:32:21 -0800 | [diff] [blame] | 142 | android:layout_height="wrap_content" |
Flavio Lerda | 9cafe47 | 2011-06-08 14:06:13 +0100 | [diff] [blame] | 143 | android:layout_alignParentLeft="true" |
The Android Open Source Project | 7aa0e4c | 2009-03-03 19:32:21 -0800 | [diff] [blame] | 144 | /> |
Flavio Lerda | 9cafe47 | 2011-06-08 14:06:13 +0100 | [diff] [blame] | 145 | <TextView |
| 146 | android:id="@+id/duration" |
| 147 | android:layout_width="wrap_content" |
| 148 | android:layout_height="wrap_content" |
| 149 | android:layout_alignParentLeft="true" |
| 150 | android:layout_below="@id/time" |
| 151 | android:layout_alignLeft="@id/time" |
| 152 | /> |
| 153 | <ImageView |
| 154 | android:id="@+id/delete" |
| 155 | android:layout_width="?attr/call_detail_action_icon_size" |
| 156 | android:layout_height="?attr/call_detail_action_icon_size" |
| 157 | android:layout_alignParentRight="true" |
| 158 | android:scaleType="center" |
| 159 | android:gravity="center_vertical" |
| 160 | android:src="@android:drawable/sym_action_call" |
| 161 | android:visibility="gone" |
| 162 | /> |
| 163 | </RelativeLayout> |
| 164 | <ListView |
| 165 | android:id="@android:id/list" |
| 166 | android:layout_width="match_parent" |
| 167 | android:layout_height="wrap_content" |
| 168 | android:layout_below="@id/call_panel" |
| 169 | android:background="?attr/call_detail_secondary_background_color" |
| 170 | /> |
| 171 | </RelativeLayout> |