blob: e436fcb8339e9edcf864b0d00bdaa8e1fecc6676 [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"
Daniel Lehmann2e95ad02011-07-28 18:30:01 -070018 xmlns:ex="http://schemas.android.com/apk/res/com.android.contacts"
Romain Guy6304c0b2010-01-08 15:06:49 -080019 android:layout_width="match_parent"
20 android:layout_height="match_parent"
Flavio Lerda9cafe472011-06-08 14:06:13 +010021 android:orientation="horizontal"
22 android:gravity="top"
The Android Open Source Project7aa0e4c2009-03-03 19:32:21 -080023>
Debashish Chatterjee2f497692011-07-19 17:23:15 +010024 <FrameLayout
25 android:id="@+id/voicemail_status"
Debashish Chatterjee2f497692011-07-19 17:23:15 +010026 android:layout_width="match_parent"
27 android:layout_height="wrap_content"
28 android:layout_alignParentLeft="true"
Flavio Lerdad44e83a2011-07-24 23:10:17 +010029 android:layout_alignParentTop="true"
Debashish Chatterjee2f497692011-07-19 17:23:15 +010030 android:visibility="gone"
31 >
32 <include layout="@layout/call_log_voicemail_status"/>
33 </FrameLayout>
34
Daniel Lehmann2e95ad02011-07-28 18:30:01 -070035 <view
36 class="com.android.contacts.widget.ProportionalLayout"
37 android:id="@+id/contact_background_sizer"
Romain Guy6304c0b2010-01-08 15:06:49 -080038 android:layout_width="match_parent"
Daniel Lehmann2e95ad02011-07-28 18:30:01 -070039 android:layout_height="wrap_content"
Flavio Lerda9cafe472011-06-08 14:06:13 +010040 android:layout_alignParentLeft="true"
Debashish Chatterjee2f497692011-07-19 17:23:15 +010041 android:layout_below="@id/voicemail_status"
Daniel Lehmann2e95ad02011-07-28 18:30:01 -070042 ex:ratio="0.5"
43 ex:direction="widthToHeight"
44 >
45 <ImageView
46 android:id="@+id/contact_background"
47 android:layout_width="match_parent"
48 android:layout_height="0dip"
49 android:adjustViewBounds="true"
50 android:scaleType="centerCrop"
51 android:background="@drawable/ic_contact_picture"
52 />
53 </view>
Flavio Lerdafb63c432011-07-07 17:16:53 +010054 <LinearLayout
Hugo Hudsonb002f512011-07-15 17:41:12 +010055 android:id="@+id/voicemail_container"
56 android:layout_width="match_parent"
57 android:layout_height="wrap_content"
Daniel Lehmann2e95ad02011-07-28 18:30:01 -070058 android:layout_below="@id/contact_background_sizer"
Hugo Hudsonb002f512011-07-15 17:41:12 +010059 >
Hugo Hudsona9ad6942011-07-29 17:06:04 +010060 <!-- The voicemail fragment will be put here. -->
Hugo Hudsonb002f512011-07-15 17:41:12 +010061 </LinearLayout>
62 <LinearLayout
Flavio Lerdafb63c432011-07-07 17:16:53 +010063 android:layout_width="match_parent"
Flavio Lerda40569562011-07-22 21:51:29 +010064 android:layout_height="@dimen/call_detail_contact_background_overlay_height"
Daniel Lehmanndbd80ee2011-08-01 16:25:52 -070065 android:background="#7F000000"
Flavio Lerdafb63c432011-07-07 17:16:53 +010066 android:layout_alignParentLeft="true"
Daniel Lehmann2e95ad02011-07-28 18:30:01 -070067 android:layout_alignBottom="@id/contact_background_sizer"
Flavio Lerdafb63c432011-07-07 17:16:53 +010068 />
Flavio Lerda9cafe472011-06-08 14:06:13 +010069 <RelativeLayout
Flavio Lerda5592b752011-07-12 18:47:36 +010070 android:id="@+id/contact_text"
Flavio Lerda9cafe472011-06-08 14:06:13 +010071 android:layout_width="match_parent"
Flavio Lerda40569562011-07-22 21:51:29 +010072 android:layout_height="@dimen/call_detail_contact_background_overlay_height"
Flavio Lerda9cafe472011-06-08 14:06:13 +010073 android:layout_alignParentLeft="true"
Daniel Lehmann2e95ad02011-07-28 18:30:01 -070074 android:layout_alignBottom="@id/contact_background_sizer"
Flavio Lerda40569562011-07-22 21:51:29 +010075 android:paddingLeft="@dimen/call_detail_contact_name_margin"
The Android Open Source Project7aa0e4c2009-03-03 19:32:21 -080076 >
Flavio Lerdafb63c432011-07-07 17:16:53 +010077 <ImageView
78 android:id="@+id/main_action"
Flavio Lerda40569562011-07-22 21:51:29 +010079 android:layout_width="@dimen/call_log_call_action_size"
Flavio Lerdafb63c432011-07-07 17:16:53 +010080 android:layout_height="match_parent"
81 android:gravity="center_vertical"
82 android:scaleType="center"
Flavio Lerda9cafe472011-06-08 14:06:13 +010083 android:layout_alignParentRight="true"
84 android:layout_alignParentBottom="true"
Flavio Lerda40569562011-07-22 21:51:29 +010085 android:layout_marginRight="@dimen/call_log_outer_margin"
86 android:layout_marginLeft="@dimen/call_log_inner_margin"
Flavio Lerdafb63c432011-07-07 17:16:53 +010087 />
Flavio Lerda5a174ef2011-07-16 12:18:37 +010088 <RelativeLayout
89 android:layout_width="wrap_content"
90 android:layout_height="match_parent"
91 android:layout_alignParentLeft="true"
92 android:layout_toLeftOf="@id/main_action"
93 android:layout_alignParentBottom="true"
94 >
95 <include layout="@layout/call_log_phone_call_details" />
96 </RelativeLayout>
Flavio Lerda9cafe472011-06-08 14:06:13 +010097 </RelativeLayout>
Flavio Lerda5592b752011-07-12 18:47:36 +010098 <ListView
99 android:id="@android:id/list"
100 android:layout_width="match_parent"
101 android:layout_height="wrap_content"
Hugo Hudsonb002f512011-07-15 17:41:12 +0100102 android:layout_below="@id/voicemail_container"
Flavio Lerda5592b752011-07-12 18:47:36 +0100103 android:background="?attr/call_log_primary_background_color"
104 />
Flavio Lerda9a208cc2011-07-12 21:05:47 +0100105 <ListView
Flavio Lerda5592b752011-07-12 18:47:36 +0100106 android:id="@+id/history"
Romain Guy6304c0b2010-01-08 15:06:49 -0800107 android:layout_width="match_parent"
Flavio Lerda9cafe472011-06-08 14:06:13 +0100108 android:layout_height="wrap_content"
109 android:layout_alignParentLeft="true"
Flavio Lerdafb63c432011-07-07 17:16:53 +0100110 android:layout_below="@android:id/list"
Flavio Lerda371d5f92011-07-09 19:45:32 +0100111 android:background="?attr/call_log_secondary_background_color"
Flavio Lerda9a208cc2011-07-12 21:05:47 +0100112 />
Flavio Lerda9cafe472011-06-08 14:06:13 +0100113</RelativeLayout>