blob: a47452ca36e9530ae54477e5beb4e7c66c2cd173 [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"
Flavio Lerdac5dbd562011-06-10 10:10:02 +010032 android:scaleType="centerCrop"
Flavio Lerda9cafe472011-06-08 14:06:13 +010033
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 Project7aa0e4c2009-03-03 19:32:21 -080053 >
Flavio Lerda9cafe472011-06-08 14:06:13 +010054 <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 Project7aa0e4c2009-03-03 19:32:21 -080062 />
Flavio Lerda9cafe472011-06-08 14:06:13 +010063 <RelativeLayout
The Android Open Source Project7aa0e4c2009-03-03 19:32:21 -080064 android:layout_width="wrap_content"
65 android:layout_height="wrap_content"
Flavio Lerda9cafe472011-06-08 14:06:13 +010066 android:layout_alignParentBottom="true"
67 android:layout_toRightOf="@id/contact_photo"
68 android:layout_marginLeft="10dp"
The Android Open Source Project7aa0e4c2009-03-03 19:32:21 -080069 >
Flavio Lerda7ea6ba02011-06-09 10:15:49 +010070 <include layout="@layout/call_log_phone_call_details" />
Flavio Lerda9cafe472011-06-08 14:06:13 +010071 </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 Guy6304c0b2010-01-08 15:06:49 -0800102 android:layout_width="match_parent"
Flavio Lerda9cafe472011-06-08 14:06:13 +0100103 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 Project7aa0e4c2009-03-03 19:32:21 -0800110 >
Flavio Lerda9cafe472011-06-08 14:06:13 +0100111 <TextView
112 android:id="@+id/time"
113 android:layout_width="wrap_content"
The Android Open Source Project7aa0e4c2009-03-03 19:32:21 -0800114 android:layout_height="wrap_content"
Flavio Lerda9cafe472011-06-08 14:06:13 +0100115 android:layout_alignParentLeft="true"
The Android Open Source Project7aa0e4c2009-03-03 19:32:21 -0800116 />
Flavio Lerda9cafe472011-06-08 14:06:13 +0100117 <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>