blob: bdf14774ef4f4653e4ad1d05224f96d60d91736e [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"
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 />
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"
Andrew Lee13f6fd02014-05-21 18:05:56 -070055 android:paddingStart="@dimen/call_log_outer_margin"
56 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"
66 android:layout_width="@dimen/call_log_list_contact_photo_size"
67 android:layout_height="@dimen/call_log_list_contact_photo_size"
68 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"
Fabrice Di Meglioc341db02013-04-03 21:11:37 -070078 android:layout_marginStart="@dimen/call_log_inner_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"
Fabrice Di Meglioc341db02013-04-03 21:11:37 -070084 android:layout_marginEnd="@dimen/call_log_icon_margin"
Chiao Cheng94b10b52012-08-17 16:59:12 -070085 android:textColor="?attr/call_log_primary_text_color"
Tyler Gunn146a4cd2014-05-05 16:51:42 -070086 android:textSize="@dimen/call_log_primary_text_size"
Chiao Cheng94b10b52012-08-17 16:59:12 -070087 android:singleLine="true"
Tyler Gunnc0f6db92014-02-26 08:28:53 -080088 />
Tyler Gunn146a4cd2014-05-05 16:51:42 -070089 <TextView
90 android:id="@+id/voicemail_transcription"
Chiao Cheng94b10b52012-08-17 16:59:12 -070091 android:layout_width="wrap_content"
92 android:layout_height="wrap_content"
Tyler Gunn146a4cd2014-05-05 16:51:42 -070093 android:layout_marginEnd="@dimen/call_log_icon_margin"
94 android:textColor="?attr/call_log_secondary_text_color"
95 android:textSize="@dimen/call_log_secondary_text_size"
96 android:singleLine="true"
97 android:ellipsize="marquee"
Yorke Lee654df8f2014-05-12 16:43:36 -070098 android:visibility="gone"
Tyler Gunn146a4cd2014-05-05 16:51:42 -070099 />
Chiao Cheng94b10b52012-08-17 16:59:12 -0700100 <LinearLayout
101 android:id="@+id/call_type"
102 android:layout_width="wrap_content"
103 android:layout_height="wrap_content"
104 android:orientation="horizontal"
Tyler Gunnc0f6db92014-02-26 08:28:53 -0800105 >
Chiao Cheng94b10b52012-08-17 16:59:12 -0700106 <view
107 class="com.android.dialer.calllog.CallTypeIconsView"
108 android:id="@+id/call_type_icons"
109 android:layout_width="wrap_content"
110 android:layout_height="wrap_content"
Fabrice Di Meglioc341db02013-04-03 21:11:37 -0700111 android:layout_marginEnd="@dimen/call_log_icon_margin"
Chiao Cheng94b10b52012-08-17 16:59:12 -0700112 android:layout_gravity="center_vertical"
Tyler Gunnc0f6db92014-02-26 08:28:53 -0800113 />
Chiao Cheng94b10b52012-08-17 16:59:12 -0700114 <TextView
Tyler Gunn146a4cd2014-05-05 16:51:42 -0700115 android:id="@+id/call_location_and_date"
Chiao Cheng94b10b52012-08-17 16:59:12 -0700116 android:layout_width="wrap_content"
117 android:layout_height="wrap_content"
Fabrice Di Meglioc341db02013-04-03 21:11:37 -0700118 android:layout_marginEnd="@dimen/call_log_icon_margin"
Chiao Cheng94b10b52012-08-17 16:59:12 -0700119 android:layout_gravity="center_vertical"
120 android:textColor="?attr/call_log_secondary_text_color"
Tyler Gunn146a4cd2014-05-05 16:51:42 -0700121 android:textSize="@dimen/call_log_secondary_text_size"
Chiao Cheng94b10b52012-08-17 16:59:12 -0700122 android:singleLine="true"
Tyler Gunnc0f6db92014-02-26 08:28:53 -0800123 />
Chiao Cheng94b10b52012-08-17 16:59:12 -0700124 </LinearLayout>
125 </LinearLayout>
Chiao Cheng94b10b52012-08-17 16:59:12 -0700126 </LinearLayout>
Tyler Gunn146a4cd2014-05-05 16:51:42 -0700127
128 <!-- Viewstub with additional expandable actions for a call log entry -->
129 <ViewStub android:id="@+id/call_log_entry_actions_stub"
130 android:inflatedId="@+id/call_log_entry_actions"
131 android:layout="@layout/call_log_list_item_actions"
132 android:layout_width="match_parent"
133 android:layout_height="wrap_content"/>
Tyler Gunnc0f6db92014-02-26 08:28:53 -0800134 </LinearLayout>
Chiao Chengc5b6a692013-09-24 15:40:43 -0700135 <!-- Displays the extra link section -->
136 <ViewStub android:id="@+id/link_stub"
137 android:layout="@layout/call_log_list_item_extra"
138 android:layout_width="match_parent"
139 android:layout_height="wrap_content"/>
Chiao Cheng94b10b52012-08-17 16:59:12 -0700140</view>