blob: 2e38e2d99a360fdbae68a8e9af00addc9a7cd17a [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"
Yorke Lee8cd94232014-07-23 14:05:31 -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"
Fabrice Di Meglioc341db02013-04-03 21:11:37 -070025 android:layout_alignParentStart="true"
Chiao Cheng94b10b52012-08-17 16:59:12 -070026 android:layout_alignParentTop="true"
Nancy Chenc8245502014-07-29 11:39:28 -070027 android:background="@color/background_dialer_details_list_items" >
Tyler Gunn18164c82014-06-09 10:20:57 -070028 <!-- Caller information "card" -->
29 <LinearLayout
30 android:id="@+id/caller_information"
31 android:layout_width="match_parent"
32 android:layout_height="wrap_content"
33 android:paddingStart="@dimen/call_detail_horizontal_margin"
34 android:paddingTop="@dimen/call_detail_top_margin"
35 android:paddingBottom="@dimen/call_detail_bottom_margin"
36 android:baselineAligned="false"
37 android:orientation="horizontal"
Tyler Gunn18164c82014-06-09 10:20:57 -070038 android:translationZ="@dimen/call_detail_translation_z"
39 android:focusable="true"
Yorke Lee8cd94232014-07-23 14:05:31 -070040 android:background="@color/background_dialer_white" >
Tyler Gunn18164c82014-06-09 10:20:57 -070041
42 <QuickContactBadge
43 android:id="@+id/quick_contact_photo"
44 android:layout_width="@dimen/contact_photo_size"
45 android:layout_height="@dimen/contact_photo_size"
46 android:layout_alignParentStart="true"
Nancy Chen19702632014-07-25 13:23:16 -070047 android:layout_gravity="top"
48 android:layout_marginTop="3dp"
Tyler Gunn18164c82014-06-09 10:20:57 -070049 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"
Nancy Chen19702632014-07-25 13:23:16 -070065 android:includeFontPadding="false"
66 android:layout_marginBottom="5dp"
Tyler Gunn18164c82014-06-09 10:20:57 -070067 android:singleLine="true"
68 />
69 <TextView
70 android:id="@+id/caller_number"
71 android:layout_width="wrap_content"
72 android:layout_height="wrap_content"
73 android:textColor="?attr/call_log_secondary_text_color"
74 android:textSize="@dimen/call_log_secondary_text_size"
Nancy Chen19702632014-07-25 13:23:16 -070075 android:layout_marginBottom="1dp"
Tyler Gunn18164c82014-06-09 10:20:57 -070076 android:singleLine="true"
77 />
Nancy Chen19702632014-07-25 13:23:16 -070078 <TextView
79 android:id="@+id/phone_account_label"
80 android:layout_width="wrap_content"
81 android:layout_height="wrap_content"
82 android:textColor="?attr/call_log_secondary_text_color"
83 android:textSize="@dimen/call_log_secondary_text_size"
84 android:singleLine="true"
85 android:visibility="gone"
86 />
Tyler Gunn18164c82014-06-09 10:20:57 -070087 </LinearLayout>
88 </LinearLayout>
89
Chiao Cheng94b10b52012-08-17 16:59:12 -070090 <FrameLayout
91 android:id="@+id/voicemail_status"
92 android:layout_width="match_parent"
93 android:layout_height="wrap_content"
Fabrice Di Meglioc341db02013-04-03 21:11:37 -070094 android:layout_alignParentStart="true"
Chiao Cheng94b10b52012-08-17 16:59:12 -070095 android:layout_alignParentTop="true"
96 android:visibility="gone"
Tyler Gunn18164c82014-06-09 10:20:57 -070097 >
Chiao Cheng94b10b52012-08-17 16:59:12 -070098 <include layout="@layout/call_log_voicemail_status"/>
99 </FrameLayout>
Yorke Lee8cd94232014-07-23 14:05:31 -0700100 <TextView
101 android:id="@+id/voicemail_transcription"
102 android:layout_width="match_parent"
103 android:layout_height="wrap_content"
104 android:paddingStart="@dimen/call_detail_horizontal_margin"
105 android:paddingEnd="@dimen/call_detail_horizontal_margin"
106 android:paddingTop="@dimen/transcription_top_margin"
Nancy Chenc8245502014-07-29 11:39:28 -0700107 android:paddingBottom="@dimen/transcription_bottom_margin" />
Chiao Cheng94b10b52012-08-17 16:59:12 -0700108 <LinearLayout
109 android:id="@+id/voicemail_container"
110 android:layout_width="match_parent"
111 android:layout_height="wrap_content"
Yorke Lee8cd94232014-07-23 14:05:31 -0700112 android:orientation="vertical"
Tyler Gunn18164c82014-06-09 10:20:57 -0700113 android:paddingBottom="@dimen/call_detail_button_spacing"
114 android:visibility="gone"
115 >
Chiao Cheng94b10b52012-08-17 16:59:12 -0700116 <!-- The voicemail fragment will be put here. -->
117 </LinearLayout>
Tyler Gunn18164c82014-06-09 10:20:57 -0700118
119 <!--
120 The list view is under everything.
121 It contains a first header element which is hidden under the controls UI.
122 When scrolling, the controls move up until the name bar hits the top.
123 -->
124 <ListView
125 android:id="@+id/history"
Chiao Cheng94b10b52012-08-17 16:59:12 -0700126 android:layout_width="match_parent"
Tyler Gunn18164c82014-06-09 10:20:57 -0700127 android:layout_height="fill_parent"
128 />
Yorke Leeaa536fd2013-07-29 11:31:04 -0700129
Chiao Cheng94b10b52012-08-17 16:59:12 -0700130
Tyler Gunn18164c82014-06-09 10:20:57 -0700131 </LinearLayout>
Chiao Cheng94b10b52012-08-17 16:59:12 -0700132 <!--
133 Used to hide the UI when playing a voicemail and the proximity sensor
134 is detecting something near the screen.
135 -->
136 <View
137 android:id="@+id/blank"
138 android:layout_width="match_parent"
139 android:layout_height="match_parent"
Chiao Cheng94b10b52012-08-17 16:59:12 -0700140 android:background="@android:color/black"
141 android:visibility="gone"
142 android:clickable="true"
Tyler Gunn18164c82014-06-09 10:20:57 -0700143 android:layout_alignParentStart="true"
144 android:layout_alignParentTop="true"
145 />
Chiao Cheng94b10b52012-08-17 16:59:12 -0700146</RelativeLayout>