1<?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<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 18 android:id="@+id/call_log_list_item" 19 android:layout_width="match_parent" 20 android:layout_height="wrap_content" 21 android:orientation="vertical"> 22 23 <!-- Day group heading. Used to show a "today", "yesterday", "last week" or "other" heading 24 above a group of call log entries. --> 25 <TextView 26 android:id="@+id/call_log_day_group_label" 27 android:layout_width="wrap_content" 28 android:layout_height="wrap_content" 29 android:layout_gravity="start" 30 android:layout_marginStart="@dimen/call_log_start_margin" 31 android:layout_marginEnd="@dimen/call_log_outer_margin" 32 android:paddingTop="@dimen/call_log_day_group_padding_top" 33 android:paddingBottom="@dimen/call_log_day_group_padding_bottom" 34 style="@style/Dialer.TextAppearance.OVERLINE.Ellipsize"/> 35 36 <android.support.v7.widget.CardView 37 android:id="@+id/call_log_row" 38 style="@style/CallLogCardStyle"> 39 40 <LinearLayout 41 android:layout_width="match_parent" 42 android:layout_height="wrap_content" 43 android:orientation="vertical"> 44 45 <!-- Primary area containing the contact badge and caller information --> 46 <LinearLayout 47 android:id="@+id/primary_action_view" 48 android:background="?android:attr/selectableItemBackground" 49 android:layout_width="match_parent" 50 android:layout_height="wrap_content" 51 android:paddingStart="@dimen/call_log_start_margin" 52 android:paddingEnd="@dimen/call_log_outer_margin" 53 android:paddingTop="@dimen/call_log_vertical_padding" 54 android:paddingBottom="@dimen/call_log_vertical_padding" 55 android:orientation="horizontal" 56 android:gravity="center_vertical" 57 android:focusable="true" 58 android:nextFocusRight="@+id/call_back_action" 59 android:nextFocusLeft="@+id/quick_contact_photo"> 60 61 <FrameLayout 62 android:layout_width="wrap_content" 63 android:layout_height="wrap_content" 64 android:layout_gravity="top" 65 > 66 67 <com.android.dialer.app.calllog.DialerQuickContactBadge 68 android:id="@+id/quick_contact_photo" 69 android:layout_width="@dimen/contact_photo_size" 70 android:layout_height="@dimen/contact_photo_size" 71 android:paddingTop="2dp" 72 android:nextFocusRight="@id/primary_action_view" 73 android:focusable="true"/> 74 75 <ImageView 76 android:id="@+id/quick_contact_checkbox" 77 android:scaleType="fitCenter" 78 android:layout_width="@dimen/contact_photo_size" 79 android:layout_height="@dimen/contact_photo_size" 80 android:visibility="gone" 81 android:src="@drawable/ic_check_mark_48dp" /> 82 83 </FrameLayout> 84 85 86 <LinearLayout 87 android:layout_width="0dp" 88 android:layout_height="wrap_content" 89 android:layout_weight="1" 90 android:orientation="vertical" 91 android:gravity="center_vertical" 92 android:layout_marginStart="@dimen/call_log_list_item_info_margin_start"> 93 94 <com.android.dialer.widget.BidiTextView 95 android:id="@+id/name" 96 android:layout_width="wrap_content" 97 android:layout_height="wrap_content" 98 android:layout_marginBottom="@dimen/call_log_name_margin_bottom" 99 android:layout_marginEnd="@dimen/call_log_icon_margin" 100 style="@style/Dialer.TextAppearance.Primary.Ellipsize"/> 101 102 <LinearLayout 103 android:id="@+id/call_type" 104 android:layout_width="wrap_content" 105 android:layout_height="wrap_content" 106 android:orientation="horizontal"> 107 108 <com.android.dialer.calllogutils.CallTypeIconsView 109 android:id="@+id/call_type_icons" 110 android:layout_width="wrap_content" 111 android:layout_height="wrap_content" 112 android:layout_marginEnd="@dimen/call_log_icon_margin" 113 android:layout_gravity="center_vertical"/> 114 115 <ImageView 116 android:id="@+id/work_profile_icon" 117 android:src="@drawable/ic_work_profile" 118 android:layout_width="wrap_content" 119 android:layout_height="wrap_content" 120 android:layout_marginEnd="@dimen/call_log_icon_margin" 121 android:scaleType="center" 122 android:visibility="gone"/> 123 124 <TextView 125 android:id="@+id/call_location_and_date" 126 android:layout_width="wrap_content" 127 android:layout_height="wrap_content" 128 android:layout_marginEnd="@dimen/call_log_icon_margin" 129 android:layout_gravity="center_vertical" 130 style="Dialer.TextAppearance.Secondary.Ellipsize"/> 131 132 </LinearLayout> 133 134 <TextView 135 android:id="@+id/call_account_label" 136 android:layout_width="wrap_content" 137 android:layout_height="wrap_content" 138 android:layout_marginTop="@dimen/call_log_call_account_margin_bottom" 139 android:layout_marginEnd="@dimen/call_log_icon_margin" 140 android:visibility="gone" 141 style="Dialer.TextAppearance.Secondary2.Ellipsize"/> 142 143 <LinearLayout 144 android:id="@+id/transcription" 145 android:layout_width="match_parent" 146 android:layout_height="wrap_content" 147 android:layout_marginTop="@dimen/call_log_icon_margin" 148 android:visibility="gone" 149 android:orientation="vertical"> 150 151 <TextView 152 android:id="@+id/voicemail_transcription" 153 android:layout_width="wrap_content" 154 android:layout_height="wrap_content" 155 android:focusable="true" 156 android:nextFocusDown="@+id/voicemail_transcription_branding" 157 android:textIsSelectable="true" 158 style="Dialer.TextAppearance.Secondary2"/> 159 160 <TextView 161 android:id="@+id/voicemail_transcription_branding" 162 android:layout_width="wrap_content" 163 android:layout_height="wrap_content" 164 android:focusable="true" 165 android:nextFocusUp="@id/voicemail_transcription" 166 android:nextFocusDown="@+id/voicemail_transcription_rating" 167 android:paddingTop="2dp" 168 style="Dialer.TextAppearance.Secondary2"/> 169 170 <LinearLayout 171 android:id="@+id/voicemail_transcription_rating" 172 android:layout_width="match_parent" 173 android:layout_height="wrap_content" 174 android:layout_marginTop="@dimen/call_log_icon_margin" 175 android:layout_gravity="center_vertical" 176 android:visibility="gone" 177 android:paddingTop="2dp" 178 android:orientation="horizontal"> 179 180 <TextView 181 style="@style/TranscriptionQualityRating" 182 android:id="@+id/voicemail_transcription_rating_text" 183 android:layout_width="wrap_content" 184 android:layout_height="wrap_content" 185 android:layout_weight="1" 186 android:gravity="start|center_vertical" 187 android:focusable="true" 188 android:text="@string/voicemail_transcription_rating"/> 189 190 <ImageView 191 style="@style/TranscriptionQualityRatingIcon" 192 android:id="@+id/voicemail_transcription_rating_good" 193 android:layout_width="wrap_content" 194 android:layout_height="wrap_content" 195 android:contentDescription="@string/description_rating_good" 196 android:gravity="end|center_vertical" 197 android:focusable="true" 198 android:src="@drawable/quantum_ic_thumb_up_grey600_24"/> 199 200 <ImageView 201 style="@style/TranscriptionQualityRatingIcon" 202 android:id="@+id/voicemail_transcription_rating_bad" 203 android:layout_width="wrap_content" 204 android:layout_height="wrap_content" 205 android:contentDescription="@string/description_rating_bad" 206 android:gravity="end|center_vertical" 207 android:focusable="true" 208 android:src="@drawable/quantum_ic_thumb_down_grey600_24"/> 209 210 </LinearLayout> 211 212 </LinearLayout> 213 214 </LinearLayout> 215 216 <ImageView 217 android:id="@+id/primary_action_button" 218 android:layout_width="@dimen/call_log_list_item_primary_action_dimen" 219 android:layout_height="@dimen/call_log_list_item_primary_action_dimen" 220 android:layout_gravity="center_vertical" 221 android:background="?android:attr/selectableItemBackgroundBorderless" 222 android:scaleType="center" 223 android:tint="?colorIcon" 224 android:visibility="gone"/> 225 226 </LinearLayout> 227 228 <!-- Viewstub with additional expandable actions for a call log entry --> 229 <ViewStub 230 android:id="@+id/call_log_entry_actions_stub" 231 android:inflatedId="@+id/call_log_entry_actions" 232 android:layout="@layout/call_log_list_item_actions" 233 android:layout_width="match_parent" 234 android:layout_height="wrap_content" 235 android:layout_gravity="bottom"/> 236 237 </LinearLayout> 238 239 </android.support.v7.widget.CardView> 240 241</LinearLayout> 242