blob: abc0fbb706e4090ed20073c62b4e187608750ec9 [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-->
Andrew Leee177fe62015-06-05 13:01:09 -070016<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
17 android:id="@+id/call_detail"
Chiao Cheng94b10b52012-08-17 16:59:12 -070018 android:layout_width="match_parent"
Andrew Leee177fe62015-06-05 13:01:09 -070019 android:layout_height="match_parent"
20 android:orientation="vertical"
21 android:layout_alignParentStart="true"
22 android:layout_alignParentTop="true"
23 android:background="@color/background_dialer_call_log" >
Chiao Cheng94b10b52012-08-17 16:59:12 -070024
Andrew Leee177fe62015-06-05 13:01:09 -070025 <!-- Caller information "card" -->
Tyler Gunn18164c82014-06-09 10:20:57 -070026 <LinearLayout
Andrew Leee177fe62015-06-05 13:01:09 -070027 android:id="@+id/caller_information"
Chiao Cheng94b10b52012-08-17 16:59:12 -070028 android:layout_width="match_parent"
Andrew Leee177fe62015-06-05 13:01:09 -070029 android:layout_height="wrap_content"
30 android:paddingStart="@dimen/call_detail_horizontal_margin"
31 android:paddingTop="@dimen/call_detail_top_margin"
32 android:paddingBottom="@dimen/call_detail_bottom_margin"
33 android:baselineAligned="false"
34 android:orientation="horizontal"
35 android:translationZ="@dimen/call_detail_translation_z"
36 android:focusable="true"
37 android:background="@color/background_dialer_white" >
38
39 <QuickContactBadge
40 android:id="@+id/quick_contact_photo"
41 android:layout_width="@dimen/contact_photo_size"
42 android:layout_height="@dimen/contact_photo_size"
43 android:layout_alignParentStart="true"
44 android:layout_gravity="top"
45 android:layout_marginTop="3dp"
46 android:focusable="true" />
47
Tyler Gunn18164c82014-06-09 10:20:57 -070048 <LinearLayout
Andrew Leee177fe62015-06-05 13:01:09 -070049 android:layout_width="0dp"
Tyler Gunn18164c82014-06-09 10:20:57 -070050 android:layout_height="wrap_content"
Andrew Leee177fe62015-06-05 13:01:09 -070051 android:layout_weight="1"
52 android:orientation="vertical"
53 android:gravity="center_vertical"
54 android:layout_marginStart="@dimen/call_detail_horizontal_margin">
Tyler Gunn18164c82014-06-09 10:20:57 -070055
Andrew Leee177fe62015-06-05 13:01:09 -070056 <TextView
57 android:id="@+id/caller_name"
Tyler Gunn18164c82014-06-09 10:20:57 -070058 android:layout_width="wrap_content"
59 android:layout_height="wrap_content"
Andrew Leee177fe62015-06-05 13:01:09 -070060 android:textColor="?attr/call_log_primary_text_color"
61 android:textSize="@dimen/call_log_primary_text_size"
62 android:includeFontPadding="false"
63 android:layout_marginBottom="5dp"
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:layout_marginBottom="1dp"
73 android:singleLine="true" />
74
75 <TextView
76 android:id="@+id/phone_account_label"
77 android:layout_width="wrap_content"
78 android:layout_height="wrap_content"
79 android:textColor="?attr/call_log_secondary_text_color"
80 android:textSize="@dimen/call_log_secondary_text_size"
81 android:singleLine="true"
82 android:visibility="gone" />
83
Tyler Gunn18164c82014-06-09 10:20:57 -070084 </LinearLayout>
85
Andrew Leee177fe62015-06-05 13:01:09 -070086 <ImageView
87 android:id="@+id/call_back_button"
88 android:layout_width="@dimen/call_button_dimen"
89 android:layout_height="@dimen/call_button_dimen"
90 android:layout_marginEnd="16dp"
91 android:background="?android:attr/selectableItemBackgroundBorderless"
92 android:src="@drawable/ic_call_24dp"
93 android:scaleType="center"
94 android:tint="@color/recent_call_log_item_phone_icon_tint"
95 android:contentDescription="@string/description_call_log_call_action"
96 android:visibility="gone" />
Chiao Cheng94b10b52012-08-17 16:59:12 -070097
Tyler Gunn18164c82014-06-09 10:20:57 -070098 </LinearLayout>
Andrew Leee177fe62015-06-05 13:01:09 -070099
100 <!--
101 The list view is under everything.
102 It contains a first header element which is hidden under the controls UI.
103 When scrolling, the controls move up until the name bar hits the top.
104 -->
105 <ListView
106 android:id="@+id/history"
107 android:layout_width="match_parent"
108 android:layout_height="fill_parent" />
109
110</LinearLayout>