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<com.android.wallpaper.picker.preview.ui.view.ClickableMotionLayout
18    xmlns:android="http://schemas.android.com/apk/res/android"
19    xmlns:app="http://schemas.android.com/apk/res-auto"
20    android:id="@+id/preview_pager"
21    android:layout_width="match_parent"
22    android:layout_height="match_parent"
23    app:layoutDescription="@xml/preview_pager_motion_scene_handheld">
24
25    <LinearLayout
26        android:id="@+id/apply_wallpaper_header"
27        android:layout_width="match_parent"
28        android:layout_height="wrap_content"
29        android:gravity="center"
30        android:visibility="gone"
31        android:orientation="vertical">
32
33        <TextView
34            android:id="@+id/apply_wallpaper_title"
35            android:layout_width="wrap_content"
36            android:layout_height="wrap_content"
37            android:layout_marginBottom="@dimen/handheld_apply_wallpaper_preview_title_margin_bottom"
38            android:text="@string/apply_wallpaper_title_text"
39            android:textAppearance="@style/SettingsLibTextAppearance.Primary.Headline.Large"  />
40
41        <TextView
42            android:id="@+id/apply_wallpaper_description"
43            android:layout_width="wrap_content"
44            android:layout_height="wrap_content"
45            android:textAppearance="@style/SettingsLibTextAppearance.Primary.Title.Small" />
46    </LinearLayout>
47
48    <include layout="@layout/small_preview_handheld_card_view2"
49        android:id="@+id/lock_preview" />
50
51    <CheckBox
52        android:id="@+id/lock_checkbox"
53        android:layout_width="wrap_content"
54        android:layout_height="wrap_content"
55        android:gravity="center_vertical"
56        android:button="@drawable/checkbox_circle_shape"
57        android:text="@string/set_wallpaper_lock_screen_destination"
58        android:singleLine="true"
59        android:ellipsize="end"
60        android:scrollHorizontally="true"
61        android:visibility="gone"/>
62
63    <include layout="@layout/small_preview_handheld_card_view2"
64        android:id="@+id/home_preview" />
65
66    <CheckBox
67        android:id="@+id/home_checkbox"
68        android:layout_width="wrap_content"
69        android:layout_height="wrap_content"
70        android:gravity="center_vertical"
71        android:button="@drawable/checkbox_circle_shape"
72        android:text="@string/set_wallpaper_home_screen_destination"
73        android:singleLine="true"
74        android:ellipsize="end"
75        android:scrollHorizontally="true"
76        android:visibility="gone"/>
77
78    <Button
79        android:id="@+id/apply_button"
80        android:layout_width="match_parent"
81        android:layout_height="wrap_content"
82        android:background="@drawable/apply_button_background_variant"
83        android:gravity="center"
84        android:minHeight="@dimen/handheld_apply_wallpaper_preview_button_min_height"
85        android:text="@string/apply_btn"
86        android:textColor="@color/system_on_primary"
87        android:textAppearance="@style/WallpaperPicker.Preview.TextAppearance.NoAllCaps"
88        android:visibility="gone" />
89
90    <Button
91        android:id="@+id/cancel_button"
92        android:layout_width="match_parent"
93        android:layout_height="wrap_content"
94        android:background="@drawable/cancel_button_background_variant"
95        android:gravity="center"
96        android:minHeight="@dimen/handheld_apply_wallpaper_preview_button_min_height"
97        android:text="@string/cancel"
98        android:textColor="@color/system_primary"
99        android:textAppearance="@style/WallpaperPicker.Preview.TextAppearance.NoAllCaps"
100        android:visibility="gone" />
101
102    <androidx.constraintlayout.widget.Guideline
103        android:id="@+id/guideline_center"
104        android:layout_width="wrap_content"
105        android:layout_height="wrap_content"
106        android:orientation="vertical"
107        app:layout_constraintGuide_percent="0.5" />
108</com.android.wallpaper.picker.preview.ui.view.ClickableMotionLayout>
109