1<?xml version="1.0" encoding="utf-8"?><!--
2  ~ Copyright (C) 2024 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:launcher="http://schemas.android.com/apk/res-auto">
18
19    <!--
20    Shown when there are more than one pages
21    Note: on page change, using accessibility live region lets user know that the title has changed.
22    -->
23    <TextView
24        android:id="@+id/recommendations_page_title"
25        android:layout_width="match_parent"
26        android:layout_height="wrap_content"
27        android:layout_marginBottom="12dp"
28        android:layout_marginTop="16dp"
29        android:accessibilityLiveRegion="polite"
30        android:gravity="center_horizontal"
31        android:layout_gravity="top"
32        android:lineHeight="20sp"
33        android:textColor="?attr/widgetPickerTitleColor"
34        android:textFontWeight="500"
35        android:textSize="16sp"
36        android:maxLines="1"
37        android:paddingHorizontal="8dp"
38        android:ellipsize="end"
39        android:visibility="gone" />
40    <!-- Shown when there are more than one pages -->
41    <com.android.launcher3.pageindicators.PageIndicatorDots
42        android:id="@+id/widget_recommendations_page_indicator"
43        android:layout_width="wrap_content"
44        android:layout_height="wrap_content"
45        android:layout_gravity="center_horizontal|top"
46        android:elevation="1dp"
47        android:visibility="gone" />
48    <!--
49     Note: importantForAccessibility = yes on this view ensures that with talkback, when user
50     swipes right on the last item in current page, they are taken to the next page. And, doing
51     the same on the last page, takes them to the next section e.g. apps list in single pane
52     picker.
53    -->
54    <com.android.launcher3.widget.picker.WidgetRecommendationsView
55        android:id="@+id/widget_recommendations_view"
56        android:layout_width="match_parent"
57        android:layout_height="0dp"
58        android:layout_gravity="center"
59        android:layout_weight="1"
60        android:background="@drawable/widgets_surface_background"
61        android:importantForAccessibility="yes"
62        launcher:pageIndicator="@+id/widget_recommendations_page_indicator" />
63</merge>