1<?xml version="1.0" encoding="utf-8"?><!--
2     Copyright (C) 2020 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<androidx.cardview.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
17    style="@style/FullContentPreviewCard"
18    android:layout_width="match_parent"
19    android:layout_height="match_parent"
20    android:clipChildren="true"
21    android:contentDescription="@string/wallpaper_preview_card_content_description">
22
23    <com.android.wallpaper.picker.customization.ui.view.WallpaperSurfaceView
24        android:id="@+id/wallpaper_surface"
25        android:layout_width="match_parent"
26        android:layout_height="match_parent" />
27
28    <SurfaceView
29        android:id="@+id/wallpaper_surface_cinematic"
30        android:visibility="gone"
31        android:layout_width="match_parent"
32        android:layout_height="match_parent" />
33
34    <!-- A 30% opacity black scrim that can be shown to "dim" the wallpaper. -->
35    <View
36        android:id="@+id/wallpaper_dimming_scrim"
37        android:layout_width="match_parent"
38        android:layout_height="match_parent"
39        android:background="@color/wallpaper_preview_scrim_color"
40        android:visibility="invisible"
41        android:importantForAccessibility="noHideDescendants" />
42
43    <SurfaceView
44        android:id="@+id/workspace_surface"
45        android:layout_width="match_parent"
46        android:layout_height="match_parent"
47        android:visibility="invisible"
48        android:importantForAccessibility="noHideDescendants" />
49
50    <FrameLayout
51        android:id="@+id/lock_screen_preview_container"
52        android:layout_width="match_parent"
53        android:layout_height="match_parent"
54        android:importantForAccessibility="noHideDescendants" />
55
56    <androidx.core.widget.ContentLoadingProgressBar
57        android:id="@+id/wallpaper_preview_spinner"
58        style="?android:progressBarStyleLarge"
59        android:background="@android:color/transparent"
60        android:layout_width="wrap_content"
61        android:layout_height="wrap_content"
62        android:layout_gravity="center"
63        android:visibility="gone" />
64
65    <ImageView
66        android:id="@+id/wallpaper_fadein_scrim"
67        android:layout_width="match_parent"
68        android:layout_height="match_parent"
69        android:background="@color/color_surface"
70        android:forceHasOverlappingRendering="false"
71        android:importantForAccessibility="no"
72        android:visibility="invisible" />
73
74    <ImageView
75        android:id="@+id/loading_view"
76        android:layerType="hardware"
77        android:layout_width="match_parent"
78        android:layout_height="match_parent"
79        android:scaleType="centerCrop"
80        android:importantForAccessibility="no" />
81
82</androidx.cardview.widget.CardView>
83