blob: 411af70e78a113cc2bdddf25eecbddf52024c749 [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"
36 android:paddingTop="@dimen/call_log_day_group_padding"
Andrew Leed3ca6c22014-05-30 13:39:32 -070037 android:paddingBottom="1dp"
Tyler Gunn4dfd7122014-05-14 15:12:42 -070038 />
Andrew Lee13f6fd02014-05-21 18:05:56 -070039
Tyler Gunnc0f6db92014-02-26 08:28:53 -080040 <!-- Linear layout to separate the primary area containing the contact badge and caller
41 information and the secondary action (call details / play voicemail). -->
42 <LinearLayout
Tyler Gunn4dfd7122014-05-14 15:12:42 -070043 android:id="@+id/call_log_row"
Tyler Gunnc0f6db92014-02-26 08:28:53 -080044 android:layout_width="match_parent"
45 android:layout_height="wrap_content"
Yorke Lee4cde5662014-04-18 17:14:58 -070046 android:baselineAligned="false"
Tyler Gunn146a4cd2014-05-05 16:51:42 -070047 android:orientation="vertical"
Andrew Lee13f6fd02014-05-21 18:05:56 -070048 android:gravity="center_vertical" >
Tyler Gunnc0f6db92014-02-26 08:28:53 -080049
50 <!-- Primary area containing the contact badge and caller information -->
Chiao Cheng94b10b52012-08-17 16:59:12 -070051 <LinearLayout
52 android:id="@+id/primary_action_view"
Tyler Gunn8bfb24b2014-05-13 10:16:08 -070053 android:background="@drawable/call_log_background"
Tyler Gunn146a4cd2014-05-05 16:51:42 -070054 android:layout_width="match_parent"
Chiao Cheng94b10b52012-08-17 16:59:12 -070055 android:layout_height="wrap_content"
Tyler Gunnf3f706a2014-05-22 16:36:14 -070056 android:paddingStart="@dimen/call_log_start_margin"
Andrew Lee13f6fd02014-05-21 18:05:56 -070057 android:paddingEnd="@dimen/call_log_outer_margin"
Tyler Gunnc26986e2014-05-16 15:39:29 -070058 android:paddingTop="@dimen/call_log_outer_margin"
Andrew Lee13f6fd02014-05-21 18:05:56 -070059 android:paddingBottom="@dimen/call_log_outer_margin"
Chiao Cheng94b10b52012-08-17 16:59:12 -070060 android:orientation="horizontal"
61 android:gravity="center_vertical"
Chiao Cheng94b10b52012-08-17 16:59:12 -070062 android:focusable="true"
Tyler Gunn146a4cd2014-05-05 16:51:42 -070063 android:nextFocusRight="@+id/call_back_action"
Andrew Lee13f6fd02014-05-21 18:05:56 -070064 android:nextFocusLeft="@+id/quick_contact_photo" >
Chiao Cheng94b10b52012-08-17 16:59:12 -070065 <QuickContactBadge
66 android:id="@+id/quick_contact_photo"
67 android:layout_width="@dimen/call_log_list_contact_photo_size"
68 android:layout_height="@dimen/call_log_list_contact_photo_size"
69 android:nextFocusRight="@id/primary_action_view"
Fabrice Di Meglioc341db02013-04-03 21:11:37 -070070 android:layout_alignParentStart="true"
Chiao Cheng94b10b52012-08-17 16:59:12 -070071 android:focusable="true"
Tyler Gunnc0f6db92014-02-26 08:28:53 -080072 />
Chiao Cheng94b10b52012-08-17 16:59:12 -070073 <LinearLayout
Yorke Leefb585072013-08-04 14:58:55 -070074 android:layout_width="0dp"
Chiao Cheng94b10b52012-08-17 16:59:12 -070075 android:layout_height="wrap_content"
76 android:layout_weight="1"
Chiao Cheng94b10b52012-08-17 16:59:12 -070077 android:orientation="vertical"
78 android:gravity="center_vertical"
Tyler Gunnf3f706a2014-05-22 16:36:14 -070079 android:layout_marginStart="@dimen/call_log_start_margin"
Tyler Gunnc0f6db92014-02-26 08:28:53 -080080 >
Chiao Cheng94b10b52012-08-17 16:59:12 -070081 <TextView
82 android:id="@+id/name"
83 android:layout_width="wrap_content"
84 android:layout_height="wrap_content"
Andrew Leec987e002014-05-29 13:07:53 -070085 android:layout_marginBottom="@dimen/call_log_name_margin_bottom"
Fabrice Di Meglioc341db02013-04-03 21:11:37 -070086 android:layout_marginEnd="@dimen/call_log_icon_margin"
Chiao Cheng94b10b52012-08-17 16:59:12 -070087 android:textColor="?attr/call_log_primary_text_color"
Tyler Gunn146a4cd2014-05-05 16:51:42 -070088 android:textSize="@dimen/call_log_primary_text_size"
Chiao Cheng94b10b52012-08-17 16:59:12 -070089 android:singleLine="true"
Tyler Gunnc0f6db92014-02-26 08:28:53 -080090 />
Tyler Gunn146a4cd2014-05-05 16:51:42 -070091 <TextView
92 android:id="@+id/voicemail_transcription"
Chiao Cheng94b10b52012-08-17 16:59:12 -070093 android:layout_width="wrap_content"
94 android:layout_height="wrap_content"
Tyler Gunn146a4cd2014-05-05 16:51:42 -070095 android:layout_marginEnd="@dimen/call_log_icon_margin"
96 android:textColor="?attr/call_log_secondary_text_color"
97 android:textSize="@dimen/call_log_secondary_text_size"
98 android:singleLine="true"
99 android:ellipsize="marquee"
Yorke Lee654df8f2014-05-12 16:43:36 -0700100 android:visibility="gone"
Tyler Gunn146a4cd2014-05-05 16:51:42 -0700101 />
Chiao Cheng94b10b52012-08-17 16:59:12 -0700102 <LinearLayout
103 android:id="@+id/call_type"
104 android:layout_width="wrap_content"
105 android:layout_height="wrap_content"
106 android:orientation="horizontal"
Tyler Gunnc0f6db92014-02-26 08:28:53 -0800107 >
Chiao Cheng94b10b52012-08-17 16:59:12 -0700108 <view
109 class="com.android.dialer.calllog.CallTypeIconsView"
110 android:id="@+id/call_type_icons"
111 android:layout_width="wrap_content"
112 android:layout_height="wrap_content"
Fabrice Di Meglioc341db02013-04-03 21:11:37 -0700113 android:layout_marginEnd="@dimen/call_log_icon_margin"
Chiao Cheng94b10b52012-08-17 16:59:12 -0700114 android:layout_gravity="center_vertical"
Tyler Gunnc0f6db92014-02-26 08:28:53 -0800115 />
Chiao Cheng94b10b52012-08-17 16:59:12 -0700116 <TextView
Tyler Gunn146a4cd2014-05-05 16:51:42 -0700117 android:id="@+id/call_location_and_date"
Chiao Cheng94b10b52012-08-17 16:59:12 -0700118 android:layout_width="wrap_content"
119 android:layout_height="wrap_content"
Fabrice Di Meglioc341db02013-04-03 21:11:37 -0700120 android:layout_marginEnd="@dimen/call_log_icon_margin"
Chiao Cheng94b10b52012-08-17 16:59:12 -0700121 android:layout_gravity="center_vertical"
122 android:textColor="?attr/call_log_secondary_text_color"
Tyler Gunn146a4cd2014-05-05 16:51:42 -0700123 android:textSize="@dimen/call_log_secondary_text_size"
Chiao Cheng94b10b52012-08-17 16:59:12 -0700124 android:singleLine="true"
Tyler Gunnc0f6db92014-02-26 08:28:53 -0800125 />
Chiao Cheng94b10b52012-08-17 16:59:12 -0700126 </LinearLayout>
127 </LinearLayout>
Chiao Cheng94b10b52012-08-17 16:59:12 -0700128 </LinearLayout>
Tyler Gunn146a4cd2014-05-05 16:51:42 -0700129
130 <!-- Viewstub with additional expandable actions for a call log entry -->
131 <ViewStub android:id="@+id/call_log_entry_actions_stub"
132 android:inflatedId="@+id/call_log_entry_actions"
133 android:layout="@layout/call_log_list_item_actions"
134 android:layout_width="match_parent"
135 android:layout_height="wrap_content"/>
Tyler Gunnc0f6db92014-02-26 08:28:53 -0800136 </LinearLayout>
Chiao Chengc5b6a692013-09-24 15:40:43 -0700137 <!-- Displays the extra link section -->
138 <ViewStub android:id="@+id/link_stub"
139 android:layout="@layout/call_log_list_item_extra"
140 android:layout_width="match_parent"
141 android:layout_height="wrap_content"/>
Chiao Cheng94b10b52012-08-17 16:59:12 -0700142</view>