blob: 5d1607edfcb42377c1358e7d1bb7d0438c2f7f76 [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"
Andrew Lee4fb0b8e2015-04-13 13:44:52 -070027 android:background="@color/background_dialer_call_log" >
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
Andrew Lee58eaabc2015-05-26 16:14:31 -070090 <com.android.dialer.voicemail.VoicemailPlaybackLayout
91 android:id="@+id/voicemail_playback_layout"
92 android:layout_width="match_parent"
93 android:layout_height="wrap_content"
94 android:visibility="gone" />
95
Tyler Gunn18164c82014-06-09 10:20:57 -070096 <!--
97 The list view is under everything.
98 It contains a first header element which is hidden under the controls UI.
99 When scrolling, the controls move up until the name bar hits the top.
100 -->
101 <ListView
102 android:id="@+id/history"
Chiao Cheng94b10b52012-08-17 16:59:12 -0700103 android:layout_width="match_parent"
Tyler Gunn18164c82014-06-09 10:20:57 -0700104 android:layout_height="fill_parent"
105 />
Yorke Leeaa536fd2013-07-29 11:31:04 -0700106
Chiao Cheng94b10b52012-08-17 16:59:12 -0700107
Tyler Gunn18164c82014-06-09 10:20:57 -0700108 </LinearLayout>
Chiao Cheng94b10b52012-08-17 16:59:12 -0700109</RelativeLayout>