1<?xml version="1.0" encoding="utf-8"?><!-- 2 ~ Copyright (C) 2024 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<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 18 xmlns:app="http://schemas.android.com/apk/res-auto" 19 android:orientation="vertical" 20 android:id="@+id/section_category" 21 android:layout_width="match_parent" 22 android:layout_height="wrap_content"> 23 24 <RelativeLayout 25 android:id="@+id/category_header" 26 android:layout_width="match_parent" 27 android:layout_height="wrap_content"> 28 29 <TextView 30 android:id="@+id/section_title" 31 android:layout_width="match_parent" 32 android:layout_height="wrap_content" 33 android:textAppearance="@style/CategorySectionTitleTextAppearance" 34 android:focusable="false" 35 android:layout_centerVertical="true" 36 android:layout_toStartOf="@id/more_photos_button" 37 android:layout_marginBottom="@dimen/grid_item_category_title_margin_bottom"/> 38 39 <Button 40 android:id="@+id/more_photos_button" 41 android:layout_width="@dimen/more_photos_button_length" 42 android:layout_height="wrap_content" 43 android:layout_centerVertical="true" 44 android:text="@string/more_photos" 45 android:textColor="@color/system_on_primary" 46 android:background="@drawable/button_rounded_corners" 47 android:layout_alignParentEnd="true" 48 android:layout_alignParentTop="true" 49 android:layout_marginBottom="@dimen/grid_item_category_title_margin_bottom"/> 50 51 <ViewStub 52 android:id="@+id/sign_in_banner_id" 53 android:layout_width="match_parent" 54 android:layout_height="wrap_content" 55 android:layout_below="@id/more_photos_button" 56 /> 57 </RelativeLayout> 58 59 <!-- Tiles --> 60 <androidx.recyclerview.widget.RecyclerView 61 android:id="@+id/category_wallpaper_tiles" 62 android:layout_width="match_parent" 63 android:layout_height="wrap_content" 64 android:clipToPadding="false" 65 android:clipChildren="false" 66 android:orientation="horizontal" 67 android:nestedScrollingEnabled="true" 68 app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager" /> 69 70</LinearLayout>