blob: 9ca30a898e538dd652870b8437468292f494a761 [file] [log] [blame]
Chiao Cheng94b10b52012-08-17 16:59:12 -07001<?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
7
8 http://www.apache.org/licenses/LICENSE-2.0
9
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-->
Chiao Cheng94b10b52012-08-17 16:59:12 -070016<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
Chiao Cheng94b10b52012-08-17 16:59:12 -070017 android:layout_width="match_parent"
Tyler Gunn18164c82014-06-09 10:20:57 -070018 android:layout_height="match_parent">
Chiao Cheng94b10b52012-08-17 16:59:12 -070019
Tyler Gunn18164c82014-06-09 10:20:57 -070020 <LinearLayout
21 android:id="@+id/call_detail"
Chiao Cheng94b10b52012-08-17 16:59:12 -070022 android:layout_width="match_parent"
23 android:layout_height="match_parent"
Tyler Gunn18164c82014-06-09 10:20:57 -070024 android:orientation="vertical"
25 android:background="@color/background_dialer_list_items"
Fabrice Di Meglioc341db02013-04-03 21:11:37 -070026 android:layout_alignParentStart="true"
Chiao Cheng94b10b52012-08-17 16:59:12 -070027 android:layout_alignParentTop="true"
28 >
Tyler Gunn18164c82014-06-09 10:20:57 -070029 <!-- Caller information "card" -->
30 <LinearLayout
31 android:id="@+id/caller_information"
32 android:layout_width="match_parent"
33 android:layout_height="wrap_content"
34 android:paddingStart="@dimen/call_detail_horizontal_margin"
35 android:paddingTop="@dimen/call_detail_top_margin"
36 android:paddingBottom="@dimen/call_detail_bottom_margin"
37 android:baselineAligned="false"
38 android:orientation="horizontal"
39 android:gravity="center_vertical"
40 android:translationZ="@dimen/call_detail_translation_z"
41 android:focusable="true"
42 android:background="@color/background_dialer_white">
43
44 <QuickContactBadge
45 android:id="@+id/quick_contact_photo"
46 android:layout_width="@dimen/contact_photo_size"
47 android:layout_height="@dimen/contact_photo_size"
48 android:layout_alignParentStart="true"
49 android:focusable="true"
50 />
51
52 <LinearLayout
53 android:layout_width="wrap_content"
54 android:layout_height="wrap_content"
55 android:orientation="vertical"
56 android:gravity="center_vertical"
57 android:layout_marginStart="@dimen/call_detail_horizontal_margin"
58 >
59 <TextView
60 android:id="@+id/caller_name"
61 android:layout_width="wrap_content"
62 android:layout_height="wrap_content"
63 android:textColor="?attr/call_log_primary_text_color"
64 android:textSize="@dimen/call_log_primary_text_size"
65 android:singleLine="true"
66 />
67 <TextView
68 android:id="@+id/caller_number"
69 android:layout_width="wrap_content"
70 android:layout_height="wrap_content"
71 android:textColor="?attr/call_log_secondary_text_color"
72 android:textSize="@dimen/call_log_secondary_text_size"
73 android:singleLine="true"
74 />
75 </LinearLayout>
76 </LinearLayout>
77
Chiao Cheng94b10b52012-08-17 16:59:12 -070078 <FrameLayout
79 android:id="@+id/voicemail_status"
80 android:layout_width="match_parent"
81 android:layout_height="wrap_content"
Fabrice Di Meglioc341db02013-04-03 21:11:37 -070082 android:layout_alignParentStart="true"
Chiao Cheng94b10b52012-08-17 16:59:12 -070083 android:layout_alignParentTop="true"
84 android:visibility="gone"
Tyler Gunn18164c82014-06-09 10:20:57 -070085 >
Chiao Cheng94b10b52012-08-17 16:59:12 -070086 <include layout="@layout/call_log_voicemail_status"/>
87 </FrameLayout>
Chiao Cheng94b10b52012-08-17 16:59:12 -070088 <LinearLayout
89 android:id="@+id/voicemail_container"
90 android:layout_width="match_parent"
91 android:layout_height="wrap_content"
Tyler Gunn18164c82014-06-09 10:20:57 -070092 android:orientation="horizontal"
93 android:paddingBottom="@dimen/call_detail_button_spacing"
94 android:visibility="gone"
95 >
Chiao Cheng94b10b52012-08-17 16:59:12 -070096 <!-- The voicemail fragment will be put here. -->
97 </LinearLayout>
Tyler Gunn18164c82014-06-09 10:20:57 -070098
99 <!--
100 The list view is under everything.
101 It contains a first header element which is hidden under the controls UI.
102 When scrolling, the controls move up until the name bar hits the top.
103 -->
104 <ListView
105 android:id="@+id/history"
Chiao Cheng94b10b52012-08-17 16:59:12 -0700106 android:layout_width="match_parent"
Tyler Gunn18164c82014-06-09 10:20:57 -0700107 android:layout_height="fill_parent"
108 />
Yorke Leeaa536fd2013-07-29 11:31:04 -0700109
Chiao Cheng94b10b52012-08-17 16:59:12 -0700110
Tyler Gunn18164c82014-06-09 10:20:57 -0700111 </LinearLayout>
Chiao Cheng94b10b52012-08-17 16:59:12 -0700112 <!--
113 Used to hide the UI when playing a voicemail and the proximity sensor
114 is detecting something near the screen.
115 -->
116 <View
117 android:id="@+id/blank"
118 android:layout_width="match_parent"
119 android:layout_height="match_parent"
Chiao Cheng94b10b52012-08-17 16:59:12 -0700120 android:background="@android:color/black"
121 android:visibility="gone"
122 android:clickable="true"
Tyler Gunn18164c82014-06-09 10:20:57 -0700123 android:layout_alignParentStart="true"
124 android:layout_alignParentTop="true"
125 />
Chiao Cheng94b10b52012-08-17 16:59:12 -0700126</RelativeLayout>