1<!--
2  ~ Copyright (C) 2019 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<merge xmlns:android="http://schemas.android.com/apk/res/android"
17    xmlns:androidprv="http://schemas.android.com/apk/prv/res/android">
18
19    <LinearLayout
20        android:id="@+id/bubble_flyout_text_container"
21        android:layout_height="wrap_content"
22        android:layout_width="wrap_content"
23        android:orientation="horizontal"
24        android:clipToPadding="false"
25        android:clipChildren="false"
26        android:paddingStart="@dimen/bubble_flyout_padding_x"
27        android:paddingEnd="@dimen/bubble_flyout_padding_x"
28        android:paddingTop="@dimen/bubble_flyout_padding_y"
29        android:paddingBottom="@dimen/bubble_flyout_padding_y"
30        android:translationZ="@dimen/bubble_flyout_elevation">
31
32        <ImageView
33            android:id="@+id/bubble_flyout_avatar"
34            android:layout_width="30dp"
35            android:layout_height="30dp"
36            android:layout_marginEnd="@dimen/bubble_flyout_avatar_message_space"
37            android:scaleType="centerInside"
38            android:src="@drawable/bubble_ic_create_bubble"/>
39
40        <LinearLayout
41            android:layout_width="wrap_content"
42            android:layout_height="wrap_content"
43            android:orientation="vertical">
44
45            <TextView
46                android:id="@+id/bubble_flyout_name"
47                android:layout_width="wrap_content"
48                android:layout_height="wrap_content"
49                android:fontFamily="@*android:string/config_bodyFontFamilyMedium"
50                android:maxLines="1"
51                android:ellipsize="end"
52                android:textColor="?androidprv:attr/materialColorOnSurface"
53                android:textAppearance="@*android:style/TextAppearance.DeviceDefault.Body2"/>
54
55            <TextView
56                android:id="@+id/bubble_flyout_text"
57                android:layout_width="wrap_content"
58                android:layout_height="wrap_content"
59                android:fontFamily="@*android:string/config_bodyFontFamily"
60                android:maxLines="2"
61                android:ellipsize="end"
62                android:textColor="?androidprv:attr/materialColorOnSurfaceVariant"
63                android:textAppearance="@*android:style/TextAppearance.DeviceDefault.Body2"/>
64
65        </LinearLayout>
66
67    </LinearLayout>
68
69</merge>