1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 ~ Copyright (C) 2023 The Android Open Source Project 4 ~ 5 ~ Licensed under the Apache License, Version 2.0 (the "License"); 6 ~ you may not use this file except in compliance with the License. 7 ~ You may obtain a copy of the License at 8 ~ 9 ~ http://www.apache.org/licenses/LICENSE-2.0 10 ~ 11 ~ Unless required by applicable law or agreed to in writing, software 12 ~ distributed under the License is distributed on an "AS IS" BASIS, 13 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 ~ See the License for the specific language governing permissions and 15 ~ limitations under the License. 16 --> 17<androidx.constraintlayout.widget.ConstraintLayout 18 xmlns:android="http://schemas.android.com/apk/res/android" 19 xmlns:app="http://schemas.android.com/apk/res-auto" 20 android:layout_width="wrap_content" 21 android:layout_height="wrap_content"> 22 23 <include layout="@layout/small_preview_handheld_card_view_selector" 24 android:id="@+id/lock_preview_selector" 25 android:layout_width="@dimen/set_wallpaper_dialog_handheld_preview_width" 26 android:layout_height="@dimen/set_wallpaper_dialog_handheld_preview_height" 27 android:clickable="true" 28 app:layout_constraintTop_toTopOf="parent" 29 app:layout_constraintStart_toStartOf="parent" 30 app:layout_constraintEnd_toStartOf="@+id/home_preview_selector" 31 app:layout_constraintBottom_toTopOf="@+id/lock_screen_title"/> 32 <TextView 33 android:id="@+id/lock_screen_title" 34 style="@style/TextAppearance.SetWallpaperDialog.Subtitle" 35 android:layout_width="wrap_content" 36 android:layout_height="wrap_content" 37 android:labelFor="@+id/lock_preview_selector" 38 android:text="@string/set_wallpaper_lock_screen_destination" 39 android:maxWidth="@dimen/set_wallpaper_dialog_handheld_preview_width" 40 app:layout_constraintTop_toBottomOf="@id/lock_preview_selector" 41 app:layout_constraintStart_toStartOf="@+id/lock_preview_selector" 42 app:layout_constraintEnd_toEndOf="@+id/lock_preview_selector"/> 43 44 <include layout="@layout/small_preview_handheld_card_view_selector" 45 android:id="@+id/home_preview_selector" 46 android:layout_width="@dimen/set_wallpaper_dialog_handheld_preview_width" 47 android:layout_height="@dimen/set_wallpaper_dialog_handheld_preview_height" 48 android:clickable="true" 49 app:layout_constraintTop_toTopOf="parent" 50 app:layout_constraintStart_toEndOf="@+id/lock_preview_selector" 51 app:layout_constraintEnd_toEndOf="parent" 52 app:layout_constraintBottom_toTopOf="@+id/home_screen_title"/> 53 <TextView 54 android:id="@+id/home_screen_title" 55 style="@style/TextAppearance.SetWallpaperDialog.Subtitle" 56 android:layout_width="wrap_content" 57 android:layout_height="wrap_content" 58 android:labelFor="@+id/home_preview_selector" 59 android:text="@string/set_wallpaper_home_screen_destination" 60 android:maxWidth="@dimen/set_wallpaper_dialog_handheld_preview_width" 61 app:layout_constraintTop_toBottomOf="@id/home_preview_selector" 62 app:layout_constraintStart_toStartOf="@+id/home_preview_selector" 63 app:layout_constraintEnd_toEndOf="@+id/home_preview_selector"/> 64 65</androidx.constraintlayout.widget.ConstraintLayout>