1<?xml version="1.0" encoding="utf-8"?><!--
2     Copyright (C) 2017 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"
20    android:layout_width="match_parent"
21    android:layout_height="wrap_content"
22    android:orientation="vertical">
23
24    <androidx.cardview.widget.CardView
25        android:id="@+id/wallpaper_container"
26        android:layout_width="match_parent"
27        android:layout_height="match_parent"
28        android:contentDescription="@string/wallpaper_thumbnail"
29        android:foreground="?attr/selectableItemBackground"
30        app:cardCornerRadius="?android:dialogCornerRadius"
31        app:cardBackgroundColor="@android:color/transparent"
32        app:cardElevation="0dp">
33
34        <RelativeLayout
35            android:layout_width="match_parent"
36            android:layout_height="match_parent">
37
38            <ImageView
39                android:id="@+id/thumbnail"
40                android:layout_width="match_parent"
41                android:layout_height="match_parent"
42                android:scaleType="centerCrop" />
43
44            <ImageView
45                android:id="@+id/overlay_icon"
46                android:layout_width="wrap_content"
47                android:layout_height="wrap_content"
48                android:layout_centerInParent="true" />
49
50            <ImageView
51                android:id="@+id/indicator_icon"
52                android:layout_width="wrap_content"
53                android:layout_height="wrap_content"
54                android:layout_alignParentBottom="true"
55                android:layout_alignParentEnd="true"
56                android:visibility="gone" />
57
58            <FrameLayout
59                android:id="@+id/loading_indicator_container"
60                android:layout_width="match_parent"
61                android:layout_height="match_parent"
62                android:visibility="gone">
63
64                <ProgressBar
65                    android:id="@+id/loading_indicator"
66                    android:layout_width="@dimen/tile_desktop_progress_bar_size"
67                    android:layout_height="@dimen/tile_desktop_progress_bar_size"
68                    android:layout_gravity="center"
69                    android:indeterminate="true"
70                    android:indeterminateTint="?android:colorAccent" />
71
72            </FrameLayout>
73        </RelativeLayout>
74
75    </androidx.cardview.widget.CardView>
76
77    <TextView
78        android:id="@+id/title"
79        android:layout_width="match_parent"
80        android:layout_height="wrap_content"
81        android:layout_marginTop="@dimen/grid_item_individual_label_padding_top"
82        android:layout_marginBottom="@dimen/grid_item_individual_label_padding_bottom"
83        android:ellipsize="end"
84        android:gravity="center"
85        android:maxLines="1"
86        android:minHeight="@dimen/grid_item_category_label_minimum_height"
87        android:textAppearance="@style/OptionTitleTextAppearance"
88        android:visibility="gone"
89        tools:text="Wallpaper" />
90</LinearLayout>
91