blob: b36101e559a9d987a8c3727bf3206e16fe6c5707 [file] [log] [blame]
Chiao Cheng94b10b52012-08-17 16:59:12 -07001<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2007 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-->
16
17<view
18 xmlns:android="http://schemas.android.com/apk/res/android"
19 class="com.android.dialer.calllog.CallLogListItemView"
20 android:layout_width="match_parent"
21 android:layout_height="wrap_content"
Chiao Cheng704acc02013-09-09 18:34:41 -070022 android:id="@+id/call_log_list_item"
Chiao Cheng94b10b52012-08-17 16:59:12 -070023 android:orientation="vertical"
24>
Tyler Gunn4dfd7122014-05-14 15:12:42 -070025 <!-- Day group heading. Used to show a "today", "yesterday", "last week" or "other" heading
26 above a group of call log entries. -->
27 <TextView
28 android:id="@+id/call_log_day_group_label"
29 android:layout_width="match_parent"
30 android:layout_height="wrap_content"
31 android:layout_marginStart="@dimen/call_log_outer_margin"
32 android:layout_marginEnd="@dimen/call_log_outer_margin"
33 android:textColor="?attr/call_log_secondary_text_color"
34 android:textSize="@dimen/call_log_secondary_text_size"
35 android:paddingTop="@dimen/call_log_day_group_padding"
36 android:paddingBottom="0dp"
37 />
Tyler Gunnc0f6db92014-02-26 08:28:53 -080038 <!-- Linear layout to separate the primary area containing the contact badge and caller
39 information and the secondary action (call details / play voicemail). -->
40 <LinearLayout
Tyler Gunn4dfd7122014-05-14 15:12:42 -070041 android:id="@+id/call_log_row"
Tyler Gunnc0f6db92014-02-26 08:28:53 -080042 android:layout_width="match_parent"
43 android:layout_height="wrap_content"
Yorke Lee4cde5662014-04-18 17:14:58 -070044 android:baselineAligned="false"
Tyler Gunn146a4cd2014-05-05 16:51:42 -070045 android:orientation="vertical"
Tyler Gunnc0f6db92014-02-26 08:28:53 -080046 android:gravity="center_vertical"
47 >
48
49 <!-- Primary area containing the contact badge and caller information -->
Chiao Cheng94b10b52012-08-17 16:59:12 -070050 <LinearLayout
51 android:id="@+id/primary_action_view"
Tyler Gunn8bfb24b2014-05-13 10:16:08 -070052 android:background="@drawable/call_log_background"
Tyler Gunn146a4cd2014-05-05 16:51:42 -070053 android:layout_width="match_parent"
Chiao Cheng94b10b52012-08-17 16:59:12 -070054 android:layout_height="wrap_content"
Yorke Leeb372f3e2013-11-14 11:45:13 -080055 android:padding="@dimen/call_log_outer_margin"
Chiao Cheng94b10b52012-08-17 16:59:12 -070056 android:orientation="horizontal"
57 android:gravity="center_vertical"
Chiao Cheng94b10b52012-08-17 16:59:12 -070058 android:focusable="true"
Tyler Gunn146a4cd2014-05-05 16:51:42 -070059 android:nextFocusRight="@+id/call_back_action"
Chiao Cheng94b10b52012-08-17 16:59:12 -070060 android:nextFocusLeft="@+id/quick_contact_photo"
Tyler Gunnc0f6db92014-02-26 08:28:53 -080061 >
Chiao Cheng94b10b52012-08-17 16:59:12 -070062 <QuickContactBadge
63 android:id="@+id/quick_contact_photo"
64 android:layout_width="@dimen/call_log_list_contact_photo_size"
65 android:layout_height="@dimen/call_log_list_contact_photo_size"
66 android:nextFocusRight="@id/primary_action_view"
Fabrice Di Meglioc341db02013-04-03 21:11:37 -070067 android:layout_alignParentStart="true"
Chiao Cheng94b10b52012-08-17 16:59:12 -070068 android:focusable="true"
Tyler Gunnc0f6db92014-02-26 08:28:53 -080069 />
Chiao Cheng94b10b52012-08-17 16:59:12 -070070 <LinearLayout
Yorke Leefb585072013-08-04 14:58:55 -070071 android:layout_width="0dp"
Chiao Cheng94b10b52012-08-17 16:59:12 -070072 android:layout_height="wrap_content"
73 android:layout_weight="1"
Chiao Cheng94b10b52012-08-17 16:59:12 -070074 android:orientation="vertical"
75 android:gravity="center_vertical"
Fabrice Di Meglioc341db02013-04-03 21:11:37 -070076 android:layout_marginStart="@dimen/call_log_inner_margin"
Tyler Gunnc0f6db92014-02-26 08:28:53 -080077 >
Chiao Cheng94b10b52012-08-17 16:59:12 -070078 <TextView
79 android:id="@+id/name"
80 android:layout_width="wrap_content"
81 android:layout_height="wrap_content"
Fabrice Di Meglioc341db02013-04-03 21:11:37 -070082 android:layout_marginEnd="@dimen/call_log_icon_margin"
Chiao Cheng94b10b52012-08-17 16:59:12 -070083 android:textColor="?attr/call_log_primary_text_color"
Tyler Gunn146a4cd2014-05-05 16:51:42 -070084 android:textSize="@dimen/call_log_primary_text_size"
Chiao Cheng94b10b52012-08-17 16:59:12 -070085 android:singleLine="true"
Tyler Gunnc0f6db92014-02-26 08:28:53 -080086 />
Tyler Gunn146a4cd2014-05-05 16:51:42 -070087 <TextView
88 android:id="@+id/voicemail_transcription"
Chiao Cheng94b10b52012-08-17 16:59:12 -070089 android:layout_width="wrap_content"
90 android:layout_height="wrap_content"
Tyler Gunn146a4cd2014-05-05 16:51:42 -070091 android:layout_marginEnd="@dimen/call_log_icon_margin"
92 android:textColor="?attr/call_log_secondary_text_color"
93 android:textSize="@dimen/call_log_secondary_text_size"
94 android:singleLine="true"
95 android:ellipsize="marquee"
Yorke Lee654df8f2014-05-12 16:43:36 -070096 android:visibility="gone"
Tyler Gunn146a4cd2014-05-05 16:51:42 -070097 />
Chiao Cheng94b10b52012-08-17 16:59:12 -070098 <LinearLayout
99 android:id="@+id/call_type"
100 android:layout_width="wrap_content"
101 android:layout_height="wrap_content"
102 android:orientation="horizontal"
Tyler Gunnc0f6db92014-02-26 08:28:53 -0800103 >
Chiao Cheng94b10b52012-08-17 16:59:12 -0700104 <view
105 class="com.android.dialer.calllog.CallTypeIconsView"
106 android:id="@+id/call_type_icons"
107 android:layout_width="wrap_content"
108 android:layout_height="wrap_content"
Fabrice Di Meglioc341db02013-04-03 21:11:37 -0700109 android:layout_marginEnd="@dimen/call_log_icon_margin"
Chiao Cheng94b10b52012-08-17 16:59:12 -0700110 android:layout_gravity="center_vertical"
Tyler Gunnc0f6db92014-02-26 08:28:53 -0800111 />
Chiao Cheng94b10b52012-08-17 16:59:12 -0700112 <TextView
Tyler Gunn146a4cd2014-05-05 16:51:42 -0700113 android:id="@+id/call_location_and_date"
Chiao Cheng94b10b52012-08-17 16:59:12 -0700114 android:layout_width="wrap_content"
115 android:layout_height="wrap_content"
Fabrice Di Meglioc341db02013-04-03 21:11:37 -0700116 android:layout_marginEnd="@dimen/call_log_icon_margin"
Chiao Cheng94b10b52012-08-17 16:59:12 -0700117 android:layout_gravity="center_vertical"
118 android:textColor="?attr/call_log_secondary_text_color"
Tyler Gunn146a4cd2014-05-05 16:51:42 -0700119 android:textSize="@dimen/call_log_secondary_text_size"
Chiao Cheng94b10b52012-08-17 16:59:12 -0700120 android:singleLine="true"
Tyler Gunnc0f6db92014-02-26 08:28:53 -0800121 />
Chiao Cheng94b10b52012-08-17 16:59:12 -0700122 </LinearLayout>
123 </LinearLayout>
Chiao Cheng94b10b52012-08-17 16:59:12 -0700124 </LinearLayout>
Tyler Gunn146a4cd2014-05-05 16:51:42 -0700125
126 <!-- Viewstub with additional expandable actions for a call log entry -->
127 <ViewStub android:id="@+id/call_log_entry_actions_stub"
128 android:inflatedId="@+id/call_log_entry_actions"
129 android:layout="@layout/call_log_list_item_actions"
130 android:layout_width="match_parent"
131 android:layout_height="wrap_content"/>
Tyler Gunnc0f6db92014-02-26 08:28:53 -0800132 </LinearLayout>
Chiao Chengc5b6a692013-09-24 15:40:43 -0700133 <!-- Displays the extra link section -->
134 <ViewStub android:id="@+id/link_stub"
135 android:layout="@layout/call_log_list_item_extra"
136 android:layout_width="match_parent"
137 android:layout_height="wrap_content"/>
138
Chiao Cheng94b10b52012-08-17 16:59:12 -0700139</view>