blob: 591ba5c4589bc19afb853684fd43ee3940a1312d [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"
Andrew Lee7b127d42015-09-30 18:24:48 -070063 android:layout_marginTop="2dp"
64 android:layout_marginBottom="3dp"
Andrew Leee177fe62015-06-05 13:01:09 -070065 android:singleLine="true" />
66
67 <TextView
68 android:id="@+id/caller_number"
69 android:layout_width="wrap_content"
70 android:layout_height="wrap_content"
71 android:textColor="?attr/call_log_secondary_text_color"
72 android:textSize="@dimen/call_log_secondary_text_size"
73 android:layout_marginBottom="1dp"
74 android:singleLine="true" />
75
76 <TextView
77 android:id="@+id/phone_account_label"
78 android:layout_width="wrap_content"
79 android:layout_height="wrap_content"
80 android:textColor="?attr/call_log_secondary_text_color"
81 android:textSize="@dimen/call_log_secondary_text_size"
82 android:singleLine="true"
83 android:visibility="gone" />
84
Tyler Gunn18164c82014-06-09 10:20:57 -070085 </LinearLayout>
86
Andrew Leee177fe62015-06-05 13:01:09 -070087 <ImageView
88 android:id="@+id/call_back_button"
Andrew Leeb0b57a12015-06-12 16:22:59 -070089 android:layout_width="@dimen/call_log_list_item_primary_action_dimen"
90 android:layout_height="@dimen/call_log_list_item_primary_action_dimen"
Andrew Leee177fe62015-06-05 13:01:09 -070091 android:layout_marginEnd="16dp"
92 android:background="?android:attr/selectableItemBackgroundBorderless"
93 android:src="@drawable/ic_call_24dp"
94 android:scaleType="center"
Andrew Leeb0b57a12015-06-12 16:22:59 -070095 android:tint="@color/call_log_list_item_primary_action_icon_tint"
Andrew Leee177fe62015-06-05 13:01:09 -070096 android:contentDescription="@string/description_call_log_call_action"
97 android:visibility="gone" />
Chiao Cheng94b10b52012-08-17 16:59:12 -070098
Tyler Gunn18164c82014-06-09 10:20:57 -070099 </LinearLayout>
Andrew Leee177fe62015-06-05 13:01:09 -0700100
101 <!--
102 The list view is under everything.
103 It contains a first header element which is hidden under the controls UI.
104 When scrolling, the controls move up until the name bar hits the top.
105 -->
106 <ListView
107 android:id="@+id/history"
108 android:layout_width="match_parent"
109 android:layout_height="fill_parent" />
110
111</LinearLayout>