The Android Open Source Project | afc4ab2 | 2009-03-03 19:32:34 -0800 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
Dianne Hackborn | 309c5dc | 2012-05-16 15:50:48 -0700 | [diff] [blame] | 2 | <!-- Copyright (C) 2012 The Android Open Source Project |
The Android Open Source Project | afc4ab2 | 2009-03-03 19:32:34 -0800 | [diff] [blame] | 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 |
Dianne Hackborn | 508fedc | 2010-07-28 17:10:42 -0700 | [diff] [blame] | 7 | |
The Android Open Source Project | afc4ab2 | 2009-03-03 19:32:34 -0800 | [diff] [blame] | 8 | http://www.apache.org/licenses/LICENSE-2.0 |
Dianne Hackborn | 508fedc | 2010-07-28 17:10:42 -0700 | [diff] [blame] | 9 | |
The Android Open Source Project | afc4ab2 | 2009-03-03 19:32:34 -0800 | [diff] [blame] | 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 | |
tmfang | 5c1d3e9 | 2018-12-24 15:09:23 +0800 | [diff] [blame] | 17 | <androidx.coordinatorlayout.widget.CoordinatorLayout |
Fan Zhang | 78369d9 | 2017-10-12 11:09:24 -0700 | [diff] [blame] | 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"> |
Dianne Hackborn | 728ac35 | 2010-06-06 22:51:42 -0700 | [diff] [blame] | 23 | |
tmfang | 7fb266f | 2019-02-18 11:08:24 +0800 | [diff] [blame] | 24 | <FrameLayout |
Fan Zhang | 78369d9 | 2017-10-12 11:09:24 -0700 | [diff] [blame] | 25 | android:layout_width="match_parent" |
tmfang | 5c1d3e9 | 2018-12-24 15:09:23 +0800 | [diff] [blame] | 26 | android:layout_height="match_parent" |
tmfang | 5c1d3e9 | 2018-12-24 15:09:23 +0800 | [diff] [blame] | 27 | settings:layout_behavior="com.android.settings.widget.FloatingAppBarScrollingViewBehavior"> |
Alexandra Gherghina | c8a1db1 | 2014-07-24 18:54:31 +0100 | [diff] [blame] | 28 | |
tmfang | 4b8eccb | 2019-03-21 19:23:41 +0800 | [diff] [blame] | 29 | <FrameLayout |
tmfang | 7fb266f | 2019-02-18 11:08:24 +0800 | [diff] [blame] | 30 | android:id="@+id/list_container" |
Fan Zhang | 78369d9 | 2017-10-12 11:09:24 -0700 | [diff] [blame] | 31 | android:layout_width="match_parent" |
tmfang | 7fb266f | 2019-02-18 11:08:24 +0800 | [diff] [blame] | 32 | android:layout_height="match_parent" |
tmfang | 7fb266f | 2019-02-18 11:08:24 +0800 | [diff] [blame] | 33 | android:visibility="gone"> |
Alexandra Gherghina | c8a1db1 | 2014-07-24 18:54:31 +0100 | [diff] [blame] | 34 | |
tmfang | 4b8eccb | 2019-03-21 19:23:41 +0800 | [diff] [blame] | 35 | <androidx.recyclerview.widget.RecyclerView |
| 36 | android:id="@+id/apps_list" |
Jason Monk | 20f464e | 2015-05-06 16:00:25 -0400 | [diff] [blame] | 37 | android:layout_width="match_parent" |
tmfang | 4b8eccb | 2019-03-21 19:23:41 +0800 | [diff] [blame] | 38 | android:layout_height="match_parent" |
| 39 | android:clipToPadding="false" |
Yanting Yang | 0bc52c3 | 2020-03-03 22:35:32 +0800 | [diff] [blame] | 40 | android:scrollbars="none" |
tmfang | 4b8eccb | 2019-03-21 19:23:41 +0800 | [diff] [blame] | 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"/> |
Jason Monk | 20f464e | 2015-05-06 16:00:25 -0400 | [diff] [blame] | 46 | |
tmfang | 4b8eccb | 2019-03-21 19:23:41 +0800 | [diff] [blame] | 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"/> |
Dianne Hackborn | 728ac35 | 2010-06-06 22:51:42 -0700 | [diff] [blame] | 56 | |
tmfang | 4b8eccb | 2019-03-21 19:23:41 +0800 | [diff] [blame] | 57 | </FrameLayout> |
Dianne Hackborn | ff3673c | 2010-08-15 17:28:36 -0700 | [diff] [blame] | 58 | |
tmfang | 7fb266f | 2019-02-18 11:08:24 +0800 | [diff] [blame] | 59 | <include layout="@layout/loading_container"/> |
Alexandra Gherghina | c8a1db1 | 2014-07-24 18:54:31 +0100 | [diff] [blame] | 60 | |
tmfang | 7fb266f | 2019-02-18 11:08:24 +0800 | [diff] [blame] | 61 | </FrameLayout> |
tmfang | 5c1d3e9 | 2018-12-24 15:09:23 +0800 | [diff] [blame] | 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> |