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