1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 Copyright (C) 2020 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<FrameLayout 18 xmlns:android="http://schemas.android.com/apk/res/android" 19 xmlns:app="http://schemas.android.com/apk/res-auto" 20 android:layout_width="match_parent" 21 android:layout_height="match_parent" 22 android:background="?android:colorBackground"> 23 24 <!-- Preview header (toolbar + status bar) is used to solve preview with full screen animated 25 to non-full screen cases. --> 26 <FrameLayout 27 android:id="@+id/preview_header" 28 android:layout_width="match_parent" 29 android:layout_height="wrap_content" 30 android:paddingBottom="?android:attr/actionBarSize"> 31 </FrameLayout> 32 33 <FrameLayout 34 android:id="@+id/separated_tabs_container" 35 android:layout_width="match_parent" 36 android:layout_height="wrap_content" 37 android:layout_gravity="bottom" 38 android:layout_marginBottom="@dimen/bottom_actions_height" 39 android:paddingHorizontal="@dimen/separated_tabs_horizontal_padding"> 40 <include layout="@layout/separated_tabs" /> 41 </FrameLayout> 42 43 <FrameLayout 44 android:id="@+id/screen_preview_layout" 45 android:layout_width="match_parent" 46 android:layout_height="match_parent" 47 android:layout_marginTop="?android:attr/actionBarSize" 48 android:layout_marginBottom="@dimen/bottom_actions_plus_separated_tabs"> 49 50 <androidx.constraintlayout.widget.ConstraintLayout 51 android:id="@+id/live_wallpaper_preview" 52 android:layout_width="match_parent" 53 android:layout_height="match_parent" 54 android:layout_gravity="center" 55 android:clipChildren="false" 56 android:clipToPadding="false" 57 android:padding="@dimen/full_preview_page_default_padding_top"> 58 59 <com.android.wallpaper.picker.TouchForwardingLayout 60 android:id="@+id/touch_forwarding_layout" 61 android:layout_width="0dp" 62 android:layout_height="0dp" 63 android:background="@android:color/transparent" 64 app:layout_constraintLeft_toLeftOf="parent" 65 app:layout_constraintRight_toRightOf="parent" 66 app:layout_constraintTop_toTopOf="parent" 67 app:layout_constraintBottom_toBottomOf="parent"> 68 69 <include 70 android:id="@+id/wallpaper_full_preview_card" 71 layout="@layout/wallpaper_preview_card" /> 72 </com.android.wallpaper.picker.TouchForwardingLayout> 73 </androidx.constraintlayout.widget.ConstraintLayout> 74 75 </FrameLayout> 76 77 <FrameLayout 78 android:id="@+id/section_header_container" 79 android:layout_width="match_parent" 80 android:layout_height="wrap_content"> 81 <include layout="@layout/section_header" android:id="@+id/toolbar_container"/> 82 </FrameLayout> 83 84 <FrameLayout 85 android:id="@+id/fullscreen_buttons_container" 86 android:layout_width="match_parent" 87 android:layout_height="wrap_content" 88 android:layout_gravity="bottom|center" 89 android:layout_marginBottom="@dimen/fullscreen_preview_button_margin" 90 android:paddingHorizontal="@dimen/fullscreen_preview_buttons_horizontal_margin"> 91 <include layout="@layout/fullscreen_buttons" /> 92 </FrameLayout> 93 94 <FrameLayout 95 android:id="@+id/bottom_action_bar_container" 96 android:layout_width="wrap_content" 97 android:layout_height="wrap_content" 98 android:layout_gravity="bottom"> 99 <include layout="@layout/bottom_action_bar" /> 100 </FrameLayout> 101</FrameLayout> 102