• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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:importantForAccessibility="yes">
25
26    <TextView
27        android:id="@+id/tile_title"
28        android:layout_width="wrap_content"
29        android:layout_height="wrap_content"
30        android:contentDescription="@string/choose_a_wallpaper_section_title"
31        android:text="@string/choose_a_wallpaper_section_title"
32        android:textAppearance="@style/CategorySectionTitleTextAppearance"
33        android:focusable="false"
34        android:layout_gravity="bottom" />
35
36    <androidx.cardview.widget.CardView
37        android:id="@+id/category"
38        android:layout_width="match_parent"
39        android:layout_height="wrap_content"
40        android:importantForAccessibility="no"
41        android:foreground="?attr/selectableItemBackground"
42        app:cardCornerRadius="?android:dialogCornerRadius"
43        app:cardElevation="0dp">
44
45        <ImageView
46            android:id="@+id/image"
47            android:layout_width="match_parent"
48            android:layout_height="match_parent"
49            android:background="?android:textColorSecondary"
50            android:scaleType="centerCrop" />
51    </androidx.cardview.widget.CardView>
52
53    <TextView
54        android:id="@+id/category_title"
55        android:layout_width="match_parent"
56        android:layout_height="wrap_content"
57        android:layout_marginTop="@dimen/grid_item_category_label_padding_top"
58        android:ellipsize="end"
59        android:gravity="center"
60        android:maxLines="1"
61        android:minHeight="@dimen/grid_item_category_label_minimum_height"
62        android:textColor="@color/system_on_surface"
63        tools:text="Wallpaper category" />
64</LinearLayout>