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
17<com.android.wm.shell.bubbles.BubbleOverflowContainerView
18    xmlns:android="http://schemas.android.com/apk/res/android"
19    android:id="@+id/bubble_overflow_container"
20    android:layout_width="match_parent"
21    android:layout_height="match_parent"
22    android:paddingLeft="@dimen/bubble_overflow_container_padding_horizontal"
23    android:paddingRight="@dimen/bubble_overflow_container_padding_horizontal"
24    android:orientation="vertical"
25    android:layout_gravity="center_horizontal">
26
27    <androidx.recyclerview.widget.RecyclerView
28        android:id="@+id/bubble_overflow_recycler"
29        android:nestedScrollingEnabled="false"
30        android:layout_width="match_parent"
31        android:layout_height="match_parent"
32        android:layout_gravity="center_horizontal"
33        android:gravity="center"
34        android:clipChildren="false"/>
35
36    <LinearLayout
37        android:id="@+id/bubble_overflow_empty_state"
38        android:visibility="gone"
39        android:layout_width="match_parent"
40        android:layout_height="match_parent"
41        android:paddingLeft="@dimen/bubble_overflow_empty_state_padding"
42        android:paddingRight="@dimen/bubble_overflow_empty_state_padding"
43        android:orientation="vertical"
44        android:gravity="center">
45
46        <ImageView
47            android:id="@+id/bubble_overflow_empty_state_image"
48            android:layout_width="@dimen/bubble_empty_overflow_image_height"
49            android:layout_height="@dimen/bubble_empty_overflow_image_height"
50            android:scaleType="fitCenter"
51            android:layout_gravity="center"/>
52
53        <TextView
54            android:id="@+id/bubble_overflow_empty_title"
55            android:text="@string/bubble_overflow_empty_title"
56            android:fontFamily="@*android:string/config_bodyFontFamilyMedium"
57            android:textAppearance="@*android:style/TextAppearance.DeviceDefault.Body2"
58            android:textSize="@*android:dimen/text_size_body_2_material"
59            android:textColor="?android:attr/textColorSecondary"
60            android:layout_width="match_parent"
61            android:layout_height="wrap_content"
62            android:gravity="center"/>
63
64        <TextView
65            android:id="@+id/bubble_overflow_empty_subtitle"
66            android:layout_width="match_parent"
67            android:layout_height="wrap_content"
68            android:fontFamily="@*android:string/config_bodyFontFamily"
69            android:textAppearance="@*android:style/TextAppearance.DeviceDefault.Body2"
70            android:textSize="@*android:dimen/text_size_body_2_material"
71            android:textColor="?android:attr/textColorSecondary"
72            android:text="@string/bubble_overflow_empty_subtitle"
73            android:paddingBottom="@dimen/bubble_empty_overflow_subtitle_padding"
74            android:gravity="center"/>
75    </LinearLayout>
76</com.android.wm.shell.bubbles.BubbleOverflowContainerView>
77