1<?xml version="1.0" encoding="utf-8"?><!-- Copyright (C) 2017 The Android Open Source Project 2 3 Licensed under the Apache License, Version 2.0 (the "License"); 4 you may not use this file except in compliance with the License. 5 You may obtain a copy of the License at 6 7 http://www.apache.org/licenses/LICENSE-2.0 8 9 Unless required by applicable law or agreed to in writing, software 10 distributed under the Li cense is distributed on an "AS IS" BASIS, 11 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 See the License for the specific language governing permissions and 13 limitations under the License. 14--> 15 16<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 17 xmlns:app="http://schemas.android.com/apk/res-auto" 18 android:layout_width="match_parent" 19 android:layout_height="match_parent" 20 android:orientation="vertical"> 21 22 <androidx.coordinatorlayout.widget.CoordinatorLayout 23 android:layout_width="match_parent" 24 android:layout_height="match_parent" 25 android:orientation="vertical"> 26 27 <com.google.android.material.appbar.AppBarLayout 28 android:layout_width="match_parent" 29 android:layout_height="wrap_content"> 30 31 <androidx.appcompat.widget.Toolbar 32 android:layout_width="match_parent" 33 android:layout_height="?attr/actionBarSize" 34 app:layout_scrollFlags="scroll|enterAlways"> 35 36 <TextView 37 android:layout_width="wrap_content" 38 android:layout_height="wrap_content" 39 android:text="Welcome to the world of cheese!" /> 40 </androidx.appcompat.widget.Toolbar> 41 </com.google.android.material.appbar.AppBarLayout> 42 43 <FrameLayout 44 android:layout_width="match_parent" 45 android:layout_height="match_parent" 46 app:layout_behavior="@string/appbar_scrolling_view_behavior"> 47 48 <androidx.recyclerview.widget.RecyclerView 49 android:id="@+id/list" 50 android:layout_width="match_parent" 51 android:layout_height="match_parent" 52 android:clipToPadding="false" 53 android:drawSelectorOnTop="true" 54 android:paddingBottom="5dp" 55 android:paddingEnd="0dp" 56 android:paddingStart="0dp" 57 android:paddingTop="5dp" 58 android:background="#11000000" 59 android:scrollbarStyle="insideOverlay" 60 android:scrollbars="vertical" /> 61 62 </FrameLayout> 63 64 </androidx.coordinatorlayout.widget.CoordinatorLayout> 65</LinearLayout> 66