blob: a8da153ed4072b8a7948cecd29194395acc136cd [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 Lerda7ea6ba02011-06-09 10:15:49 +010071 <include layout="@layout/call_log_phone_call_details" />
Flavio Lerda9cafe472011-06-08 14:06:13 +010072 </RelativeLayout>
73 <RelativeLayout
74 android:layout_width="wrap_content"
75 android:layout_height="?attr/call_detail_action_icon_size"
76 android:layout_alignParentRight="true"
77 android:layout_alignParentBottom="true"
78 android:layout_marginBottom="10dp"
79 >
80 <ImageView
81 android:id="@+id/call"
82 android:layout_width="?attr/call_detail_action_icon_size"
83 android:layout_height="?attr/call_detail_action_icon_size"
84 android:layout_alignParentRight="true"
85 android:gravity="center_vertical"
86 android:src="@android:drawable/sym_action_call"
87 android:scaleType="center"
88 />
89 <View
90 android:id="@+id/divider"
91 android:layout_width="1px"
92 android:layout_height="wrap_content"
93 android:layout_marginTop="5dip"
94 android:layout_marginBottom="5dip"
95 android:layout_toLeftOf="@id/call"
96 android:layout_marginLeft="11dip"
97 android:background="#FFFFFF"
98 />
99 </RelativeLayout>
100 </RelativeLayout>
101 <RelativeLayout
102 android:id="@+id/call_panel"
Romain Guy6304c0b2010-01-08 15:06:49 -0800103 android:layout_width="match_parent"
Flavio Lerda9cafe472011-06-08 14:06:13 +0100104 android:layout_height="wrap_content"
105 android:layout_alignParentLeft="true"
106 android:layout_below="@id/photo_panel"
107 android:paddingBottom="10dp"
108 android:paddingTop="10dp"
109 android:paddingLeft="80dp"
110 android:background="#FFFFFF"
The Android Open Source Project7aa0e4c2009-03-03 19:32:21 -0800111 >
Flavio Lerda9cafe472011-06-08 14:06:13 +0100112 <TextView
113 android:id="@+id/time"
114 android:layout_width="wrap_content"
The Android Open Source Project7aa0e4c2009-03-03 19:32:21 -0800115 android:layout_height="wrap_content"
Flavio Lerda9cafe472011-06-08 14:06:13 +0100116 android:layout_alignParentLeft="true"
The Android Open Source Project7aa0e4c2009-03-03 19:32:21 -0800117 />
Flavio Lerda9cafe472011-06-08 14:06:13 +0100118 <TextView
119 android:id="@+id/duration"
120 android:layout_width="wrap_content"
121 android:layout_height="wrap_content"
122 android:layout_alignParentLeft="true"
123 android:layout_below="@id/time"
124 android:layout_alignLeft="@id/time"
125 />
126 <ImageView
127 android:id="@+id/delete"
128 android:layout_width="?attr/call_detail_action_icon_size"
129 android:layout_height="?attr/call_detail_action_icon_size"
130 android:layout_alignParentRight="true"
131 android:scaleType="center"
132 android:gravity="center_vertical"
133 android:src="@android:drawable/sym_action_call"
134 android:visibility="gone"
135 />
136 </RelativeLayout>
137 <ListView
138 android:id="@android:id/list"
139 android:layout_width="match_parent"
140 android:layout_height="wrap_content"
141 android:layout_below="@id/call_panel"
142 android:background="?attr/call_detail_secondary_background_color"
143 />
144</RelativeLayout>