1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2019 The Android Open Source Project 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 http://www.apache.org/licenses/LICENSE-2.0 7 Unless required by applicable law or agreed to in writing, software 8 distributed under the License is distributed on an "AS IS" BASIS, 9 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 10 See the License for the specific language governing permissions and 11 limitations under the License. 12--> 13<androidx.coordinatorlayout.widget.CoordinatorLayout 14 xmlns:android="http://schemas.android.com/apk/res/android" 15 xmlns:app="http://schemas.android.com/apk/res-auto" 16 android:layout_width="match_parent" 17 android:layout_height="match_parent"> 18 19 <com.google.android.material.appbar.AppBarLayout 20 android:layout_width="match_parent" 21 android:layout_height="wrap_content"> 22 23 <androidx.appcompat.widget.Toolbar 24 android:layout_width="match_parent" 25 android:layout_height="?attr/actionBarSize" 26 app:layout_scrollFlags="scroll|enterAlways"> 27 28 <TextView 29 android:layout_width="wrap_content" 30 android:layout_height="wrap_content" 31 android:text="Toolbar" /> 32 </androidx.appcompat.widget.Toolbar> 33 </com.google.android.material.appbar.AppBarLayout> 34 35 <androidx.recyclerview.widget.RecyclerView 36 android:id="@+id/appbarlayout_recyclerview" 37 android:layout_width="match_parent" 38 android:layout_height="match_parent" 39 app:layout_behavior="com.google.android.material.appbar.AppBarLayout$ScrollingViewBehavior" /> 40</androidx.coordinatorlayout.widget.CoordinatorLayout>