1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2012 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<androidx.coordinatorlayout.widget.CoordinatorLayout
18    xmlns:android="http://schemas.android.com/apk/res/android"
19    xmlns:settings="http://schemas.android.com/apk/res-auto"
20    android:layout_width="match_parent"
21    android:layout_height="match_parent"
22    android:orientation="vertical">
23
24    <FrameLayout
25        android:layout_width="match_parent"
26        android:layout_height="match_parent"
27        settings:layout_behavior="com.android.settings.widget.FloatingAppBarScrollingViewBehavior">
28
29        <FrameLayout
30            android:id="@+id/list_container"
31            android:layout_width="match_parent"
32            android:layout_height="match_parent"
33            android:visibility="gone">
34
35            <androidx.recyclerview.widget.RecyclerView
36                android:id="@+id/apps_list"
37                android:layout_width="match_parent"
38                android:layout_height="match_parent"
39                android:clipToPadding="false"
40                android:scrollbars="none"
41                settings:fastScrollEnabled="true"
42                settings:fastScrollHorizontalThumbDrawable="@drawable/thumb_drawable"
43                settings:fastScrollHorizontalTrackDrawable="@drawable/line_drawable"
44                settings:fastScrollVerticalThumbDrawable="@drawable/thumb_drawable"
45                settings:fastScrollVerticalTrackDrawable="@drawable/line_drawable"/>
46
47            <TextView
48                android:id="@android:id/empty"
49                android:layout_width="match_parent"
50                android:layout_height="match_parent"
51                android:gravity="center"
52                android:layout_gravity="center"
53                android:text="@string/no_applications"
54                android:textAppearance="?android:attr/textAppearanceLarge"
55                android:visibility="invisible"/>
56
57        </FrameLayout>
58
59        <include layout="@layout/loading_container"/>
60
61    </FrameLayout>
62
63    <com.google.android.material.appbar.AppBarLayout
64        android:layout_width="match_parent"
65        android:layout_height="wrap_content">
66        <FrameLayout
67            android:id="@+id/pinned_header"
68            android:layout_width="match_parent"
69            android:layout_height="wrap_content"
70            settings:layout_scrollFlags="scroll|enterAlways"/>
71    </com.google.android.material.appbar.AppBarLayout>
72
73</androidx.coordinatorlayout.widget.CoordinatorLayout>
74