blob: 76552ab1255ef9c5928f7d8166aab9979091a066 [file] [log] [blame]
The Android Open Source Project7aa0e4c2009-03-03 19:32:21 -08001<?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 Lerda9cafe472011-06-08 14:06:13 +01007
The Android Open Source Project7aa0e4c2009-03-03 19:32:21 -08008 http://www.apache.org/licenses/LICENSE-2.0
Flavio Lerda9cafe472011-06-08 14:06:13 +01009
The Android Open Source Project7aa0e4c2009-03-03 19:32:21 -080010 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 Lerda9cafe472011-06-08 14:06:13 +010017<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
Romain Guy6304c0b2010-01-08 15:06:49 -080018 android:layout_width="match_parent"
19 android:layout_height="match_parent"
Flavio Lerda9cafe472011-06-08 14:06:13 +010020 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 Project7aa0e4c2009-03-03 19:32:21 -080024>
Flavio Lerda9cafe472011-06-08 14:06:13 +010025 <ImageView
26 android:id="@+id/contact_background"
Romain Guy6304c0b2010-01-08 15:06:49 -080027 android:layout_width="match_parent"
Flavio Lerda9cafe472011-06-08 14:06:13 +010028 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 Project7aa0e4c2009-03-03 19:32:21 -080054 >
Flavio Lerda9cafe472011-06-08 14:06:13 +010055 <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 Project7aa0e4c2009-03-03 19:32:21 -080063 />
Flavio Lerda9cafe472011-06-08 14:06:13 +010064 <RelativeLayout
The Android Open Source Project7aa0e4c2009-03-03 19:32:21 -080065 android:layout_width="wrap_content"
66 android:layout_height="wrap_content"
Flavio Lerda9cafe472011-06-08 14:06:13 +010067 android:layout_alignParentBottom="true"
68 android:layout_toRightOf="@id/contact_photo"
69 android:layout_marginLeft="10dp"
The Android Open Source Project7aa0e4c2009-03-03 19:32:21 -080070 >
Flavio Lerda9cafe472011-06-08 14:06:13 +010071 <TextView
72 android:id="@+id/number"
The Android Open Source Project7aa0e4c2009-03-03 19:32:21 -080073 android:layout_width="wrap_content"
74 android:layout_height="wrap_content"
75 android:textAppearance="?android:attr/textAppearanceSmall"
Flavio Lerda9cafe472011-06-08 14:06:13 +010076 android:textColor="?attr/call_detail_primary_text_color"
77 android:layout_alignParentLeft="true"
78 android:layout_alignParentBottom="true"
The Android Open Source Project7aa0e4c2009-03-03 19:32:21 -080079 />
Flavio Lerda9cafe472011-06-08 14:06:13 +010080 <TextView
81 android:id="@+id/call_type"
The Android Open Source Project7aa0e4c2009-03-03 19:32:21 -080082 android:layout_width="wrap_content"
83 android:layout_height="wrap_content"
84 android:textAppearance="?android:attr/textAppearanceSmall"
Flavio Lerda9cafe472011-06-08 14:06:13 +010085 android:textColor="?attr/call_detail_primary_text_color"
86 android:layout_alignParentLeft="true"
87 android:layout_above="@id/number"
The Android Open Source Project7aa0e4c2009-03-03 19:32:21 -080088 />
Flavio Lerda9cafe472011-06-08 14:06:13 +010089 <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 Guy6304c0b2010-01-08 15:06:49 -0800130 android:layout_width="match_parent"
Flavio Lerda9cafe472011-06-08 14:06:13 +0100131 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 Project7aa0e4c2009-03-03 19:32:21 -0800138 >
Flavio Lerda9cafe472011-06-08 14:06:13 +0100139 <TextView
140 android:id="@+id/time"
141 android:layout_width="wrap_content"
The Android Open Source Project7aa0e4c2009-03-03 19:32:21 -0800142 android:layout_height="wrap_content"
Flavio Lerda9cafe472011-06-08 14:06:13 +0100143 android:layout_alignParentLeft="true"
The Android Open Source Project7aa0e4c2009-03-03 19:32:21 -0800144 />
Flavio Lerda9cafe472011-06-08 14:06:13 +0100145 <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>