blob: bc6580a775b319d69ab78b056201ec0cccefbaec [file] [log] [blame]
The Android Open Source Projectafc4ab22009-03-03 19:32:34 -08001<?xml version="1.0" encoding="utf-8"?>
Dianne Hackborn309c5dc2012-05-16 15:50:48 -07002<!-- Copyright (C) 2012 The Android Open Source Project
The Android Open Source Projectafc4ab22009-03-03 19:32:34 -08003
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
Dianne Hackborn508fedc2010-07-28 17:10:42 -07007
The Android Open Source Projectafc4ab22009-03-03 19:32:34 -08008 http://www.apache.org/licenses/LICENSE-2.0
Dianne Hackborn508fedc2010-07-28 17:10:42 -07009
The Android Open Source Projectafc4ab22009-03-03 19:32:34 -080010 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
tmfang5c1d3e92018-12-24 15:09:23 +080017<androidx.coordinatorlayout.widget.CoordinatorLayout
Fan Zhang78369d92017-10-12 11:09:24 -070018 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">
Dianne Hackborn728ac352010-06-06 22:51:42 -070023
tmfang7fb266f2019-02-18 11:08:24 +080024 <FrameLayout
Fan Zhang78369d92017-10-12 11:09:24 -070025 android:layout_width="match_parent"
tmfang5c1d3e92018-12-24 15:09:23 +080026 android:layout_height="match_parent"
tmfang5c1d3e92018-12-24 15:09:23 +080027 settings:layout_behavior="com.android.settings.widget.FloatingAppBarScrollingViewBehavior">
Alexandra Gherghinac8a1db12014-07-24 18:54:31 +010028
tmfang4b8eccb2019-03-21 19:23:41 +080029 <FrameLayout
tmfang7fb266f2019-02-18 11:08:24 +080030 android:id="@+id/list_container"
Fan Zhang78369d92017-10-12 11:09:24 -070031 android:layout_width="match_parent"
tmfang7fb266f2019-02-18 11:08:24 +080032 android:layout_height="match_parent"
tmfang7fb266f2019-02-18 11:08:24 +080033 android:visibility="gone">
Alexandra Gherghinac8a1db12014-07-24 18:54:31 +010034
tmfang4b8eccb2019-03-21 19:23:41 +080035 <androidx.recyclerview.widget.RecyclerView
36 android:id="@+id/apps_list"
Jason Monk20f464e2015-05-06 16:00:25 -040037 android:layout_width="match_parent"
tmfang4b8eccb2019-03-21 19:23:41 +080038 android:layout_height="match_parent"
39 android:clipToPadding="false"
Yanting Yang0bc52c32020-03-03 22:35:32 +080040 android:scrollbars="none"
tmfang4b8eccb2019-03-21 19:23:41 +080041 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"/>
Jason Monk20f464e2015-05-06 16:00:25 -040046
tmfang4b8eccb2019-03-21 19:23:41 +080047 <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"/>
Dianne Hackborn728ac352010-06-06 22:51:42 -070056
tmfang4b8eccb2019-03-21 19:23:41 +080057 </FrameLayout>
Dianne Hackbornff3673c2010-08-15 17:28:36 -070058
tmfang7fb266f2019-02-18 11:08:24 +080059 <include layout="@layout/loading_container"/>
Alexandra Gherghinac8a1db12014-07-24 18:54:31 +010060
tmfang7fb266f2019-02-18 11:08:24 +080061 </FrameLayout>
tmfang5c1d3e92018-12-24 15:09:23 +080062
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>