blob: f08531b0cfaa229756d7c92ec20b5367069bf7d0 [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"
38 android:gravity="center_vertical"
39 android:translationZ="@dimen/call_detail_translation_z"
40 android:focusable="true"
Yorke Lee8cd94232014-07-23 14:05:31 -070041 android:background="@color/background_dialer_white" >
Tyler Gunn18164c82014-06-09 10:20:57 -070042
43 <QuickContactBadge
44 android:id="@+id/quick_contact_photo"
45 android:layout_width="@dimen/contact_photo_size"
46 android:layout_height="@dimen/contact_photo_size"
47 android:layout_alignParentStart="true"
48 android:focusable="true"
49 />
50
51 <LinearLayout
52 android:layout_width="wrap_content"
53 android:layout_height="wrap_content"
54 android:orientation="vertical"
55 android:gravity="center_vertical"
56 android:layout_marginStart="@dimen/call_detail_horizontal_margin"
57 >
58 <TextView
59 android:id="@+id/caller_name"
60 android:layout_width="wrap_content"
61 android:layout_height="wrap_content"
62 android:textColor="?attr/call_log_primary_text_color"
63 android:textSize="@dimen/call_log_primary_text_size"
64 android:singleLine="true"
65 />
66 <TextView
67 android:id="@+id/caller_number"
68 android:layout_width="wrap_content"
69 android:layout_height="wrap_content"
70 android:textColor="?attr/call_log_secondary_text_color"
71 android:textSize="@dimen/call_log_secondary_text_size"
72 android:singleLine="true"
73 />
74 </LinearLayout>
75 </LinearLayout>
76
Chiao Cheng94b10b52012-08-17 16:59:12 -070077 <FrameLayout
78 android:id="@+id/voicemail_status"
79 android:layout_width="match_parent"
80 android:layout_height="wrap_content"
Fabrice Di Meglioc341db02013-04-03 21:11:37 -070081 android:layout_alignParentStart="true"
Chiao Cheng94b10b52012-08-17 16:59:12 -070082 android:layout_alignParentTop="true"
83 android:visibility="gone"
Tyler Gunn18164c82014-06-09 10:20:57 -070084 >
Chiao Cheng94b10b52012-08-17 16:59:12 -070085 <include layout="@layout/call_log_voicemail_status"/>
86 </FrameLayout>
Yorke Lee8cd94232014-07-23 14:05:31 -070087 <TextView
88 android:id="@+id/voicemail_transcription"
89 android:layout_width="match_parent"
90 android:layout_height="wrap_content"
91 android:paddingStart="@dimen/call_detail_horizontal_margin"
92 android:paddingEnd="@dimen/call_detail_horizontal_margin"
93 android:paddingTop="@dimen/transcription_top_margin"
94 android:paddingBottom="@dimen/transcription_bottom_margin"
95 android:background="@color/background_dialer_list_items" />
Chiao Cheng94b10b52012-08-17 16:59:12 -070096 <LinearLayout
97 android:id="@+id/voicemail_container"
98 android:layout_width="match_parent"
99 android:layout_height="wrap_content"
Yorke Lee8cd94232014-07-23 14:05:31 -0700100 android:orientation="vertical"
Tyler Gunn18164c82014-06-09 10:20:57 -0700101 android:paddingBottom="@dimen/call_detail_button_spacing"
102 android:visibility="gone"
103 >
Chiao Cheng94b10b52012-08-17 16:59:12 -0700104 <!-- The voicemail fragment will be put here. -->
105 </LinearLayout>
Tyler Gunn18164c82014-06-09 10:20:57 -0700106
107 <!--
108 The list view is under everything.
109 It contains a first header element which is hidden under the controls UI.
110 When scrolling, the controls move up until the name bar hits the top.
111 -->
112 <ListView
113 android:id="@+id/history"
Chiao Cheng94b10b52012-08-17 16:59:12 -0700114 android:layout_width="match_parent"
Tyler Gunn18164c82014-06-09 10:20:57 -0700115 android:layout_height="fill_parent"
116 />
Yorke Leeaa536fd2013-07-29 11:31:04 -0700117
Chiao Cheng94b10b52012-08-17 16:59:12 -0700118
Tyler Gunn18164c82014-06-09 10:20:57 -0700119 </LinearLayout>
Chiao Cheng94b10b52012-08-17 16:59:12 -0700120 <!--
121 Used to hide the UI when playing a voicemail and the proximity sensor
122 is detecting something near the screen.
123 -->
124 <View
125 android:id="@+id/blank"
126 android:layout_width="match_parent"
127 android:layout_height="match_parent"
Chiao Cheng94b10b52012-08-17 16:59:12 -0700128 android:background="@android:color/black"
129 android:visibility="gone"
130 android:clickable="true"
Tyler Gunn18164c82014-06-09 10:20:57 -0700131 android:layout_alignParentStart="true"
132 android:layout_alignParentTop="true"
133 />
Chiao Cheng94b10b52012-08-17 16:59:12 -0700134</RelativeLayout>