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 settings:fastScrollEnabled="true" 41 settings:fastScrollHorizontalThumbDrawable="@drawable/thumb_drawable" 42 settings:fastScrollHorizontalTrackDrawable="@drawable/line_drawable" 43 settings:fastScrollVerticalThumbDrawable="@drawable/thumb_drawable" 44 settings:fastScrollVerticalTrackDrawable="@drawable/line_drawable"/> 45 46 <TextView 47 android:id="@android:id/empty" 48 android:layout_width="match_parent" 49 android:layout_height="match_parent" 50 android:gravity="center" 51 android:layout_gravity="center" 52 android:text="@string/no_applications" 53 android:textAppearance="?android:attr/textAppearanceLarge" 54 android:visibility="invisible"/> 55 56 </FrameLayout> 57 58 <include layout="@layout/loading_container"/> 59 60 </FrameLayout> 61 62 <com.google.android.material.appbar.AppBarLayout 63 android:layout_width="match_parent" 64 android:layout_height="wrap_content"> 65 <FrameLayout 66 android:id="@+id/pinned_header" 67 android:layout_width="match_parent" 68 android:layout_height="wrap_content" 69 settings:layout_scrollFlags="scroll|enterAlways"/> 70 </com.google.android.material.appbar.AppBarLayout> 71 72</androidx.coordinatorlayout.widget.CoordinatorLayout> 73