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:fontFamily="sans-serif-medium" 33 android:textColor="@color/call_log_day_group_heading_color" 34 android:textSize="@dimen/call_log_day_group_heading_size" 35 android:paddingTop="@dimen/call_log_day_group_padding_top" 36 android:paddingBottom="@dimen/call_log_day_group_padding_bottom" /> 37 38 <android.support.v7.widget.CardView 39 android:id="@+id/call_log_row" 40 style="@style/CallLogCardStyle"> 41 42 <LinearLayout 43 android:layout_width="match_parent" 44 android:layout_height="wrap_content" 45 android:orientation="vertical"> 46 47 <!-- Primary area containing the contact badge and caller information --> 48 <LinearLayout 49 android:id="@+id/primary_action_view" 50 android:background="?android:attr/selectableItemBackground" 51 android:layout_width="match_parent" 52 android:layout_height="wrap_content" 53 android:paddingStart="@dimen/call_log_start_margin" 54 android:paddingEnd="@dimen/call_log_outer_margin" 55 android:paddingTop="@dimen/call_log_vertical_padding" 56 android:paddingBottom="@dimen/call_log_vertical_padding" 57 android:orientation="horizontal" 58 android:gravity="center_vertical" 59 android:focusable="true" 60 android:nextFocusRight="@+id/call_back_action" 61 android:nextFocusLeft="@+id/quick_contact_photo" > 62 63 <QuickContactBadge 64 android:id="@+id/quick_contact_photo" 65 android:layout_width="@dimen/contact_photo_size" 66 android:layout_height="@dimen/contact_photo_size" 67 android:paddingTop="2dp" 68 android:nextFocusRight="@id/primary_action_view" 69 android:layout_gravity="top" 70 android:focusable="true" /> 71 72 <LinearLayout 73 android:layout_width="0dp" 74 android:layout_height="wrap_content" 75 android:layout_weight="1" 76 android:orientation="vertical" 77 android:gravity="center_vertical" 78 android:layout_marginStart="@dimen/call_log_list_item_info_margin_start"> 79 80 <TextView 81 android:id="@+id/name" 82 android:layout_width="wrap_content" 83 android:layout_height="wrap_content" 84 android:layout_marginBottom="@dimen/call_log_name_margin_bottom" 85 android:layout_marginEnd="@dimen/call_log_icon_margin" 86 android:textColor="@color/call_log_primary_color" 87 android:textSize="@dimen/call_log_primary_text_size" 88 android:singleLine="true" /> 89 90 <LinearLayout 91 android:id="@+id/call_type" 92 android:layout_width="wrap_content" 93 android:layout_height="wrap_content" 94 android:orientation="horizontal"> 95 96 <view 97 class="com.android.dialer.calllog.CallTypeIconsView" 98 android:id="@+id/call_type_icons" 99 android:layout_width="wrap_content" 100 android:layout_height="wrap_content" 101 android:layout_marginEnd="@dimen/call_log_icon_margin" 102 android:layout_gravity="center_vertical" /> 103 104 <ImageView android:id="@+id/work_profile_icon" 105 android:src="@drawable/ic_work_profile" 106 android:layout_width="wrap_content" 107 android:layout_height="wrap_content" 108 android:layout_marginEnd="@dimen/call_log_icon_margin" 109 android:scaleType="center" 110 android:visibility="gone" /> 111 112 <TextView 113 android:id="@+id/call_location_and_date" 114 android:layout_width="wrap_content" 115 android:layout_height="wrap_content" 116 android:layout_marginEnd="@dimen/call_log_icon_margin" 117 android:layout_gravity="center_vertical" 118 android:textColor="@color/call_log_detail_color" 119 android:textSize="@dimen/call_log_detail_text_size" 120 android:singleLine="true" /> 121 122 </LinearLayout> 123 124 <TextView 125 android:id="@+id/call_account_label" 126 android:layout_width="wrap_content" 127 android:layout_height="wrap_content" 128 android:layout_marginTop="@dimen/call_log_call_account_margin_bottom" 129 android:layout_marginEnd="@dimen/call_log_icon_margin" 130 android:textColor="?attr/call_log_secondary_text_color" 131 android:textSize="@dimen/call_log_detail_text_size" 132 android:visibility="gone" 133 android:singleLine="true" /> 134 135 <TextView 136 android:id="@+id/voicemail_transcription" 137 android:layout_width="wrap_content" 138 android:layout_height="wrap_content" 139 android:layout_marginTop="@dimen/call_log_icon_margin" 140 android:textColor="@color/call_log_voicemail_transcript_color" 141 android:textSize="@dimen/call_log_voicemail_transcription_text_size" 142 android:ellipsize="marquee" 143 android:visibility="gone" 144 android:singleLine="false" 145 android:maxLines="10"/> 146 147 </LinearLayout> 148 149 <ImageView 150 android:id="@+id/primary_action_button" 151 android:layout_width="@dimen/call_log_list_item_primary_action_dimen" 152 android:layout_height="@dimen/call_log_list_item_primary_action_dimen" 153 android:layout_gravity="center_vertical" 154 android:layout_marginEnd="@dimen/call_log_icon_margin" 155 android:background="?android:attr/selectableItemBackgroundBorderless" 156 android:scaleType="center" 157 android:tint="@color/call_log_list_item_primary_action_icon_tint" 158 android:visibility="gone" /> 159 160 </LinearLayout> 161 162 <!-- Viewstub with additional expandable actions for a call log entry --> 163 <ViewStub android:id="@+id/call_log_entry_actions_stub" 164 android:inflatedId="@+id/call_log_entry_actions" 165 android:layout="@layout/call_log_list_item_actions" 166 android:layout_width="match_parent" 167 android:layout_height="wrap_content" 168 android:layout_gravity="bottom" /> 169 170 </LinearLayout> 171 172 </android.support.v7.widget.CardView> 173 174 </LinearLayout> 175