blob: d925c13b8ce57d4a4de13b234995de85be040ef7 [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
Andrew Lee13f6fd02014-05-21 18:05:56 -070017<view xmlns:android="http://schemas.android.com/apk/res/android"
Chiao Cheng94b10b52012-08-17 16:59:12 -070018 class="com.android.dialer.calllog.CallLogListItemView"
Andrew Lee13f6fd02014-05-21 18:05:56 -070019 android:id="@+id/call_log_list_item"
Chiao Cheng94b10b52012-08-17 16:59:12 -070020 android:layout_width="match_parent"
21 android:layout_height="wrap_content"
22 android:orientation="vertical"
Andrew Lee13f6fd02014-05-21 18:05:56 -070023 android:background="@color/background_dialer_list_items" >
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"
Tyler Gunnf3f706a2014-05-22 16:36:14 -070031 android:layout_marginStart="@dimen/call_log_start_margin"
Tyler Gunn4dfd7122014-05-14 15:12:42 -070032 android:layout_marginEnd="@dimen/call_log_outer_margin"
Andrew Leee1c03962014-06-03 14:47:06 -070033 android:fontFamily="sans-serif-medium"
Tyler Gunn4dfd7122014-05-14 15:12:42 -070034 android:textColor="?attr/call_log_secondary_text_color"
35 android:textSize="@dimen/call_log_secondary_text_size"
Andrew Lee64c45522014-06-11 18:04:14 -070036 android:paddingTop="@dimen/call_log_day_group_padding_top"
37 android:paddingBottom="@dimen/call_log_day_group_padding_bottom" />
Andrew Lee13f6fd02014-05-21 18:05:56 -070038
Tyler Gunnc0f6db92014-02-26 08:28:53 -080039 <!-- Linear layout to separate the primary area containing the contact badge and caller
40 information and the secondary action (call details / play voicemail). -->
41 <LinearLayout
Tyler Gunn4dfd7122014-05-14 15:12:42 -070042 android:id="@+id/call_log_row"
Tyler Gunnc0f6db92014-02-26 08:28:53 -080043 android:layout_width="match_parent"
44 android:layout_height="wrap_content"
Yorke Lee4cde5662014-04-18 17:14:58 -070045 android:baselineAligned="false"
Tyler Gunn146a4cd2014-05-05 16:51:42 -070046 android:orientation="vertical"
Andrew Lee13f6fd02014-05-21 18:05:56 -070047 android:gravity="center_vertical" >
Tyler Gunnc0f6db92014-02-26 08:28:53 -080048
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"
Tyler Gunnf3f706a2014-05-22 16:36:14 -070055 android:paddingStart="@dimen/call_log_start_margin"
Andrew Lee13f6fd02014-05-21 18:05:56 -070056 android:paddingEnd="@dimen/call_log_outer_margin"
Tyler Gunnc26986e2014-05-16 15:39:29 -070057 android:paddingTop="@dimen/call_log_outer_margin"
Andrew Lee13f6fd02014-05-21 18:05:56 -070058 android:paddingBottom="@dimen/call_log_outer_margin"
Chiao Cheng94b10b52012-08-17 16:59:12 -070059 android:orientation="horizontal"
60 android:gravity="center_vertical"
Chiao Cheng94b10b52012-08-17 16:59:12 -070061 android:focusable="true"
Tyler Gunn146a4cd2014-05-05 16:51:42 -070062 android:nextFocusRight="@+id/call_back_action"
Andrew Lee13f6fd02014-05-21 18:05:56 -070063 android:nextFocusLeft="@+id/quick_contact_photo" >
Chiao Cheng94b10b52012-08-17 16:59:12 -070064 <QuickContactBadge
65 android:id="@+id/quick_contact_photo"
Tyler Gunn18164c82014-06-09 10:20:57 -070066 android:layout_width="@dimen/contact_photo_size"
67 android:layout_height="@dimen/contact_photo_size"
Chiao Cheng94b10b52012-08-17 16:59:12 -070068 android:nextFocusRight="@id/primary_action_view"
Fabrice Di Meglioc341db02013-04-03 21:11:37 -070069 android:layout_alignParentStart="true"
Chiao Cheng94b10b52012-08-17 16:59:12 -070070 android:focusable="true"
Tyler Gunnc0f6db92014-02-26 08:28:53 -080071 />
Chiao Cheng94b10b52012-08-17 16:59:12 -070072 <LinearLayout
Yorke Leefb585072013-08-04 14:58:55 -070073 android:layout_width="0dp"
Chiao Cheng94b10b52012-08-17 16:59:12 -070074 android:layout_height="wrap_content"
75 android:layout_weight="1"
Chiao Cheng94b10b52012-08-17 16:59:12 -070076 android:orientation="vertical"
77 android:gravity="center_vertical"
Tyler Gunnf3f706a2014-05-22 16:36:14 -070078 android:layout_marginStart="@dimen/call_log_start_margin"
Tyler Gunnc0f6db92014-02-26 08:28:53 -080079 >
Chiao Cheng94b10b52012-08-17 16:59:12 -070080 <TextView
81 android:id="@+id/name"
82 android:layout_width="wrap_content"
83 android:layout_height="wrap_content"
Andrew Leec987e002014-05-29 13:07:53 -070084 android:layout_marginBottom="@dimen/call_log_name_margin_bottom"
Fabrice Di Meglioc341db02013-04-03 21:11:37 -070085 android:layout_marginEnd="@dimen/call_log_icon_margin"
Chiao Cheng94b10b52012-08-17 16:59:12 -070086 android:textColor="?attr/call_log_primary_text_color"
Tyler Gunn146a4cd2014-05-05 16:51:42 -070087 android:textSize="@dimen/call_log_primary_text_size"
Chiao Cheng94b10b52012-08-17 16:59:12 -070088 android:singleLine="true"
Tyler Gunnc0f6db92014-02-26 08:28:53 -080089 />
Tyler Gunn146a4cd2014-05-05 16:51:42 -070090 <TextView
91 android:id="@+id/voicemail_transcription"
Chiao Cheng94b10b52012-08-17 16:59:12 -070092 android:layout_width="wrap_content"
93 android:layout_height="wrap_content"
Tyler Gunn146a4cd2014-05-05 16:51:42 -070094 android:layout_marginEnd="@dimen/call_log_icon_margin"
95 android:textColor="?attr/call_log_secondary_text_color"
96 android:textSize="@dimen/call_log_secondary_text_size"
97 android:singleLine="true"
98 android:ellipsize="marquee"
Yorke Lee654df8f2014-05-12 16:43:36 -070099 android:visibility="gone"
Tyler Gunn146a4cd2014-05-05 16:51:42 -0700100 />
Chiao Cheng94b10b52012-08-17 16:59:12 -0700101 <LinearLayout
102 android:id="@+id/call_type"
103 android:layout_width="wrap_content"
104 android:layout_height="wrap_content"
105 android:orientation="horizontal"
Tyler Gunnc0f6db92014-02-26 08:28:53 -0800106 >
Chiao Cheng94b10b52012-08-17 16:59:12 -0700107 <view
108 class="com.android.dialer.calllog.CallTypeIconsView"
109 android:id="@+id/call_type_icons"
110 android:layout_width="wrap_content"
111 android:layout_height="wrap_content"
Fabrice Di Meglioc341db02013-04-03 21:11:37 -0700112 android:layout_marginEnd="@dimen/call_log_icon_margin"
Chiao Cheng94b10b52012-08-17 16:59:12 -0700113 android:layout_gravity="center_vertical"
Tyler Gunnc0f6db92014-02-26 08:28:53 -0800114 />
Chiao Cheng94b10b52012-08-17 16:59:12 -0700115 <TextView
Tyler Gunn146a4cd2014-05-05 16:51:42 -0700116 android:id="@+id/call_location_and_date"
Chiao Cheng94b10b52012-08-17 16:59:12 -0700117 android:layout_width="wrap_content"
118 android:layout_height="wrap_content"
Fabrice Di Meglioc341db02013-04-03 21:11:37 -0700119 android:layout_marginEnd="@dimen/call_log_icon_margin"
Chiao Cheng94b10b52012-08-17 16:59:12 -0700120 android:layout_gravity="center_vertical"
121 android:textColor="?attr/call_log_secondary_text_color"
Tyler Gunn146a4cd2014-05-05 16:51:42 -0700122 android:textSize="@dimen/call_log_secondary_text_size"
Chiao Cheng94b10b52012-08-17 16:59:12 -0700123 android:singleLine="true"
Tyler Gunnc0f6db92014-02-26 08:28:53 -0800124 />
Chiao Cheng94b10b52012-08-17 16:59:12 -0700125 </LinearLayout>
126 </LinearLayout>
Chiao Cheng94b10b52012-08-17 16:59:12 -0700127 </LinearLayout>
Tyler Gunn146a4cd2014-05-05 16:51:42 -0700128
129 <!-- Viewstub with additional expandable actions for a call log entry -->
130 <ViewStub android:id="@+id/call_log_entry_actions_stub"
131 android:inflatedId="@+id/call_log_entry_actions"
132 android:layout="@layout/call_log_list_item_actions"
133 android:layout_width="match_parent"
134 android:layout_height="wrap_content"/>
Tyler Gunnc0f6db92014-02-26 08:28:53 -0800135 </LinearLayout>
Chiao Chengc5b6a692013-09-24 15:40:43 -0700136 <!-- Displays the extra link section -->
137 <ViewStub android:id="@+id/link_stub"
138 android:layout="@layout/call_log_list_item_extra"
139 android:layout_width="match_parent"
140 android:layout_height="wrap_content"/>
Chiao Cheng94b10b52012-08-17 16:59:12 -0700141</view>