1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 ~ Copyright (C) 2018 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<RelativeLayout 18 xmlns:android="http://schemas.android.com/apk/res/android" 19 android:layout_width="match_parent" 20 android:layout_height="@dimen/ec_container_height" 21 android:paddingStart="@dimen/call_entry_text_left_margin" 22 android:clickable="true" 23 android:background="?attr/selectableItemBackground"> 24 25 <TextView 26 android:id="@+id/multimedia_details" 27 android:layout_width="wrap_content" 28 android:layout_height="wrap_content" 29 android:layout_centerVertical="true" 30 android:layout_marginStart="1dp" 31 android:maxLines="2" 32 style="@style/Dialer.TextAppearance.Secondary.Ellipsize"/> 33 34 <FrameLayout 35 android:id="@+id/multimedia_image_container" 36 android:layout_width="@dimen/ec_photo_size" 37 android:layout_height="@dimen/ec_photo_size" 38 android:layout_alignParentEnd="true" 39 android:layout_marginEnd="@dimen/call_entry_padding" 40 android:layout_centerVertical="true" 41 android:background="@drawable/multimedia_image_background" 42 android:clickable="true" 43 android:foreground="?attr/selectableItemBackground" 44 android:outlineProvider="background" 45 android:visibility="gone"> 46 47 <ImageView 48 android:id="@+id/multimedia_image" 49 android:layout_width="match_parent" 50 android:layout_height="match_parent" 51 android:scaleType="centerCrop"/> 52 53 <TextView 54 android:id="@+id/multimedia_attachments_number" 55 android:layout_width="match_parent" 56 android:layout_height="match_parent" 57 android:textColor="?android:attr/textColorPrimaryInverse" 58 android:textSize="20sp" 59 style="@style/Dialer.TextAppearance.Header2" 60 android:gravity="center" 61 android:visibility="gone"/> 62 </FrameLayout> 63</RelativeLayout>