blob: 45431a215a5b43df786cbe9d122d81c785c85c7d [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"
Yorke Lee8cd94232014-07-23 14:05:31 -070027 android:background="@color/background_dialer_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"
107 android:paddingBottom="@dimen/transcription_bottom_margin"
108 android:background="@color/background_dialer_list_items" />
Chiao Cheng94b10b52012-08-17 16:59:12 -0700109 <LinearLayout
110 android:id="@+id/voicemail_container"
111 android:layout_width="match_parent"
112 android:layout_height="wrap_content"
Yorke Lee8cd94232014-07-23 14:05:31 -0700113 android:orientation="vertical"
Tyler Gunn18164c82014-06-09 10:20:57 -0700114 android:paddingBottom="@dimen/call_detail_button_spacing"
115 android:visibility="gone"
116 >
Chiao Cheng94b10b52012-08-17 16:59:12 -0700117 <!-- The voicemail fragment will be put here. -->
118 </LinearLayout>
Tyler Gunn18164c82014-06-09 10:20:57 -0700119
120 <!--
121 The list view is under everything.
122 It contains a first header element which is hidden under the controls UI.
123 When scrolling, the controls move up until the name bar hits the top.
124 -->
125 <ListView
126 android:id="@+id/history"
Chiao Cheng94b10b52012-08-17 16:59:12 -0700127 android:layout_width="match_parent"
Tyler Gunn18164c82014-06-09 10:20:57 -0700128 android:layout_height="fill_parent"
129 />
Yorke Leeaa536fd2013-07-29 11:31:04 -0700130
Chiao Cheng94b10b52012-08-17 16:59:12 -0700131
Tyler Gunn18164c82014-06-09 10:20:57 -0700132 </LinearLayout>
Chiao Cheng94b10b52012-08-17 16:59:12 -0700133 <!--
134 Used to hide the UI when playing a voicemail and the proximity sensor
135 is detecting something near the screen.
136 -->
137 <View
138 android:id="@+id/blank"
139 android:layout_width="match_parent"
140 android:layout_height="match_parent"
Chiao Cheng94b10b52012-08-17 16:59:12 -0700141 android:background="@android:color/black"
142 android:visibility="gone"
143 android:clickable="true"
Tyler Gunn18164c82014-06-09 10:20:57 -0700144 android:layout_alignParentStart="true"
145 android:layout_alignParentTop="true"
146 />
Chiao Cheng94b10b52012-08-17 16:59:12 -0700147</RelativeLayout>