1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 ~ Copyright (C) 2016 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 xmlns:android="http://schemas.android.com/apk/res/android" 19 xmlns:app="http://schemas.android.com/apk/res-auto" 20 android:layout_width="match_parent" 21 android:layout_height="wrap_content" 22 android:paddingTop="16dp" 23 android:paddingStart="@dimen/answer_message_margin_start_end" 24 android:paddingEnd="@dimen/answer_message_margin_start_end"> 25 26 <android.support.v7.widget.AppCompatTextView 27 android:id="@id/answer_message_text" 28 android:layout_width="wrap_content" 29 android:layout_height="wrap_content" 30 android:layout_marginTop="@dimen/answer_message_contents_margin_top" 31 android:layout_marginBottom="4dp" 32 android:layout_centerHorizontal="true" 33 android:layout_alignTop="@+id/answer_message_avatar" 34 android:elevation="@dimen/answer_data_elevation" 35 android:gravity="center" 36 android:paddingTop="22dp" 37 android:paddingBottom="22dp" 38 android:paddingStart="32dp" 39 android:paddingEnd="32dp" 40 android:minHeight="108dp" 41 android:lineSpacingMultiplier="1.2" 42 android:textColor="?android:attr/textColorPrimaryInverse" 43 android:textAppearance="@style/Dialer.Incall.TextAppearance.Message" 44 android:background="@drawable/answer_text_only_background" 45 app:autoSizeTextType="uniform" 46 app:autoSizeMaxTextSize="44sp"/> 47 48 <ImageView 49 android:id="@id/answer_message_avatar" 50 android:layout_width="@dimen/answer_message_avatar_size" 51 android:layout_height="@dimen/answer_message_avatar_size" 52 android:layout_centerHorizontal="true" 53 android:elevation="@dimen/answer_avatar_elevation"/> 54</RelativeLayout> 55