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<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 17 xmlns:app="http://schemas.android.com/apk/res-auto" 18 xmlns:tools="http://schemas.android.com/tools" 19 android:id="@+id/tile_group" 20 android:layout_width="match_parent" 21 android:layout_height="wrap_content" 22 android:focusable="false" 23 android:orientation="vertical" 24 android:layout_marginTop="10dp" 25 android:importantForAccessibility="yes"> 26 27 <TextView 28 android:id="@+id/tile_title" 29 android:layout_width="wrap_content" 30 android:layout_height="wrap_content" 31 android:contentDescription="@string/choose_a_wallpaper_section_title" 32 android:text="@string/choose_a_wallpaper_section_title" 33 android:textAppearance="@style/CategorySectionTitleTextAppearance" 34 android:focusable="false" 35 android:layout_gravity="bottom" /> 36 37 <androidx.cardview.widget.CardView 38 android:id="@+id/category" 39 android:layout_width="match_parent" 40 android:layout_height="match_parent" 41 android:importantForAccessibility="no" 42 android:foreground="?attr/selectableItemBackground" 43 app:cardCornerRadius="?android:dialogCornerRadius" 44 app:cardElevation="0dp"> 45 46 <ImageView 47 android:id="@+id/image" 48 android:layout_width="match_parent" 49 android:layout_height="match_parent" 50 android:background="?android:textColorSecondary" 51 android:scaleType="centerCrop" /> 52 </androidx.cardview.widget.CardView> 53 54 <TextView 55 android:id="@+id/category_title" 56 android:layout_width="match_parent" 57 android:layout_height="wrap_content" 58 android:layout_marginTop="@dimen/grid_item_category_label_padding_top" 59 android:ellipsize="end" 60 android:gravity="center" 61 android:maxLines="1" 62 android:minHeight="@dimen/grid_item_category_label_minimum_height" 63 tools:text="Wallpaper category" /> 64</LinearLayout>