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 --> 18<androidx.constraintlayout.widget.ConstraintLayout 19 xmlns:android="http://schemas.android.com/apk/res/android" 20 xmlns:app="http://schemas.android.com/apk/res-auto" 21 android:id="@+id/container" 22 android:layout_width="match_parent" 23 android:layout_height="match_parent" 24 android:fitsSystemWindows="true" 25 android:transitionGroup="true" 26 android:clipChildren="false" 27 android:clipToPadding="false"> 28 29 <include 30 android:id="@+id/toolbar_container" 31 layout="@layout/section_header_content" 32 android:layout_width="0dp" 33 android:layout_height="wrap_content" 34 app:layout_constraintTop_toTopOf="parent" 35 app:layout_constraintStart_toStartOf="parent" 36 app:layout_constraintEnd_toStartOf="@id/button_set_wallpaper" 37 app:layout_constraintBottom_toTopOf="@+id/pager_group" 38 app:layout_constraintVertical_chainStyle="spread_inside" /> 39 40 <Button 41 android:id="@+id/button_set_wallpaper" 42 android:layout_width="wrap_content" 43 android:layout_height="wrap_content" 44 android:layout_marginEnd="@dimen/set_wallpaper_button_margin_end" 45 android:background="@drawable/set_wallpaper_button_background_variant" 46 android:elevation="@dimen/wallpaper_preview_buttons_elevation" 47 android:gravity="center" 48 android:minHeight="@dimen/touch_target_min_height" 49 android:text="@string/set_wallpaper_button_text" 50 android:textColor="@color/system_on_primary" 51 android:textAppearance="@style/WallpaperPicker.Preview.TextAppearance.NoAllCaps" 52 app:layout_constraintEnd_toEndOf="parent" 53 app:layout_constraintTop_toTopOf="parent" 54 app:layout_constraintBottom_toBottomOf="@id/toolbar_container"/> 55 56 <!-- Set clipToPadding to false so that during transition scaling, child card view is not 57 clipped to the header bar --> 58 <LinearLayout 59 android:id="@+id/pager_group" 60 android:layout_width="match_parent" 61 android:layout_height="0dp" 62 android:paddingBottom="@dimen/wallpaper_control_button_size" 63 android:gravity="center" 64 android:importantForAccessibility="no" 65 android:orientation="vertical" 66 app:layout_constraintStart_toStartOf="parent" 67 app:layout_constraintEnd_toEndOf="parent" 68 app:layout_constraintTop_toBottomOf="@id/toolbar_container" 69 app:layout_constraintBottom_toBottomOf="parent" 70 android:clipChildren="false" 71 android:clipToPadding="false"> 72 73 <com.android.wallpaper.picker.preview.ui.view.DualPreviewViewPager 74 android:id="@+id/dual_preview_pager" 75 android:layout_width="match_parent" 76 android:layout_height="match_parent" 77 android:layout_gravity="bottom" 78 android:paddingHorizontal="@dimen/small_dual_preview_edge_space" 79 android:clipChildren="false" 80 android:importantForAccessibility="no" /> 81 82 <com.android.wallpaper.picker.preview.ui.view.PreviewTabs 83 android:id="@+id/preview_tabs_container" 84 android:layout_width="match_parent" 85 android:layout_height="wrap_content" 86 android:layout_marginTop="@dimen/spacing_10dp" 87 android:layout_marginBottom="@dimen/spacing_10dp" /> 88 </LinearLayout> 89 90 <com.android.wallpaper.picker.preview.ui.view.PreviewActionFloatingSheet 91 android:id="@+id/floating_sheet" 92 android:layout_height="match_parent" 93 android:layout_width="match_parent" /> 94 95 <com.android.wallpaper.picker.preview.ui.view.PreviewActionGroup 96 android:id="@+id/action_button_group" 97 android:layout_width="wrap_content" 98 android:layout_height="wrap_content" 99 android:layout_marginBottom="@dimen/wallpaper_control_button_group_margin_end" 100 android:layout_marginTop="@dimen/wallpaper_control_button_group_margin_top" 101 app:layout_constraintStart_toStartOf="parent" 102 app:layout_constraintEnd_toEndOf="parent" 103 app:layout_constraintBottom_toBottomOf="parent" 104 app:layout_constraintVertical_weight="1" /> 105 106</androidx.constraintlayout.widget.ConstraintLayout> 107