1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 ~ Copyright (C) 2017 The Android Open Source Project 4 ~ 5 ~ Licensed under the Apache License, Version 2.0 (the "License"); 6 ~ you may not use this file except in compliance with the License. 7 ~ You may obtain a copy of the License at 8 ~ 9 ~ http://www.apache.org/licenses/LICENSE-2.0 10 ~ 11 ~ Unless required by applicable law or agreed to in writing, software 12 ~ distributed under the License is distributed on an "AS IS" BASIS, 13 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 ~ See the License for the specific language governing permissions and 15 ~ limitations under the License 16 --> 17 18<RelativeLayout 19 xmlns:android="http://schemas.android.com/apk/res/android" 20 xmlns:tools="http://schemas.android.com/tools" 21 android:layout_width="match_parent" 22 android:layout_height="wrap_content" 23 android:minHeight="72dp"> 24 25 <com.android.dialer.widget.ContactPhotoView 26 android:id="@+id/contact_photo_view" 27 android:layout_width="wrap_content" 28 android:layout_height="wrap_content" 29 android:layout_marginTop="12dp" 30 android:layout_marginStart="8dp" 31 android:layout_marginEnd="8dp"/> 32 33 <LinearLayout 34 android:layout_width="wrap_content" 35 android:layout_height="wrap_content" 36 android:layout_toEndOf="@+id/contact_photo_view" 37 android:layout_toStartOf="@+id/menu_button" 38 android:orientation="vertical"> 39 40 <TextView 41 android:id="@+id/primary_text" 42 style="@style/Dialer.TextAppearance.Primary.Ellipsize" 43 android:layout_width="wrap_content" 44 android:layout_height="wrap_content" 45 android:layout_marginTop="14dp" 46 android:layout_marginEnd="6dp" 47 android:lineSpacingMultiplier="1.5"/> 48 49 <LinearLayout 50 android:layout_width="wrap_content" 51 android:layout_height="wrap_content" 52 android:orientation="horizontal" 53 tools:ignore="UseCompoundDrawables"> 54 55 <ImageView 56 android:layout_width="wrap_content" 57 android:layout_height="18dp" 58 android:layout_gravity="center_vertical" 59 android:importantForAccessibility="no" 60 android:src="@drawable/quantum_ic_voicemail_vd_theme_24" 61 android:tint="?android:attr/colorPrimary" 62 android:tintMode="multiply" 63 tools:ignore="ContentDescription"/> 64 65 <TextView 66 android:id="@+id/secondary_text" 67 style="@style/Dialer.TextAppearance.Secondary.Ellipsize" 68 android:layout_width="wrap_content" 69 android:layout_height="wrap_content" 70 android:lineSpacingMultiplier="1.4"/> 71 </LinearLayout> 72 73 <!-- TODO(a bug): Make text selectable --> 74 <TextView 75 android:id="@+id/transcription_text" 76 style="@style/Dialer.TextAppearance.Primary" 77 android:layout_width="wrap_content" 78 android:layout_height="wrap_content" 79 android:layout_marginTop="6dp" 80 android:layout_gravity="center_vertical" 81 android:textSize="@dimen/voicemail_transcription_text_size" 82 android:visibility="gone"/> 83 84 <TextView 85 android:id="@+id/transcription_branding" 86 style="@style/Dialer.TextAppearance.Secondary" 87 android:layout_width="wrap_content" 88 android:layout_height="wrap_content" 89 android:layout_gravity="center_vertical" 90 android:text="@string/voicemail_transcription_branding_text" 91 android:visibility="gone"/> 92 93 <com.android.dialer.voicemail.listui.NewVoicemailMediaPlayerView 94 android:id="@+id/new_voicemail_media_player" 95 android:layout_width="match_parent" 96 android:layout_height="wrap_content" 97 android:visibility="gone"/> 98 </LinearLayout> 99 100 <ImageView 101 android:id="@+id/menu_button" 102 android:layout_width="56dp" 103 android:layout_height="72dp" 104 android:layout_alignParentEnd="true" 105 android:background="?android:attr/selectableItemBackgroundBorderless" 106 android:contentDescription="@string/a11y_voicemail_entry_expand_menu" 107 android:scaleType="center" 108 android:src="@drawable/quantum_ic_more_vert_vd_theme_24" 109 android:tint="?colorIcon"/> 110</RelativeLayout> 111