1<?xml version="1.0" encoding="utf-8"?><!-- 2 Copyright (C) 2017 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<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" 18 android:layout_width="match_parent" 19 android:layout_height="match_parent" 20 android:fitsSystemWindows="false"> 21 22 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 23 android:layout_width="match_parent" 24 android:layout_height="match_parent" 25 android:orientation="vertical"> 26 27 <com.google.android.material.tabs.TabLayout 28 android:id="@+id/tab_layout" 29 style="@style/CategoryTabLayout" 30 android:layout_width="wrap_content" 31 android:layout_height="wrap_content"></com.google.android.material.tabs.TabLayout> 32 33 <FrameLayout 34 android:id="@+id/fragment_container" 35 android:layout_width="match_parent" 36 android:layout_height="match_parent" 37 android:visibility="gone" /> 38 39 <FrameLayout 40 android:id="@+id/loading_indicator_container" 41 android:layout_width="match_parent" 42 android:layout_height="match_parent"> 43 44 <ProgressBar 45 android:id="@+id/loading_indicator" 46 android:layout_width="@dimen/tile_desktop_progress_bar_size" 47 android:layout_height="@dimen/tile_desktop_progress_bar_size" 48 android:layout_gravity="center" 49 android:indeterminate="true" 50 android:indeterminateTint="@color/accent_color" /> 51 52 </FrameLayout> 53 54 </LinearLayout> 55 56 <androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android" 57 xmlns:app="http://schemas.android.com/apk/res-auto" 58 android:id="@+id/coordinator_layout" 59 android:layout_width="match_parent" 60 android:layout_height="wrap_content" 61 android:layout_gravity="bottom"> 62 63 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 64 xmlns:app="http://schemas.android.com/apk/res-auto" 65 android:id="@+id/bottom_sheet" 66 android:layout_width="match_parent" 67 android:layout_height="@dimen/current_wallpaper_bottom_sheet_layout_height" 68 android:layout_gravity="bottom" 69 android:background="@color/translucent_black_90_alpha" 70 android:minHeight="@dimen/current_wallpaper_bottom_sheet_explore_button_margin_top" 71 android:orientation="vertical" 72 android:visibility="gone" 73 app:behavior_peekHeight="0dp" 74 app:layout_behavior="com.google.android.material.bottomsheet.BottomSheetBehavior"> 75 76 <LinearLayout 77 android:id="@+id/bottom_sheet_contents" 78 android:layout_width="match_parent" 79 android:layout_height="match_parent" 80 android:orientation="horizontal"> 81 82 <com.android.wallpaper.widget.WallpaperThumbnailView 83 android:id="@+id/current_wallpaper_image" 84 android:layout_width="wrap_content" 85 android:layout_height="@dimen/current_wallpaper_bottom_sheet_thumb_height" 86 android:layout_margin="@dimen/current_wallpaper_bottom_sheet_thumb_margin" 87 android:contentDescription="@string/currently_set_wallpaper_thumbnail" /> 88 89 <FrameLayout 90 android:layout_width="match_parent" 91 android:layout_height="match_parent"> 92 93 <LinearLayout 94 android:layout_width="match_parent" 95 android:layout_height="wrap_content" 96 android:layout_gravity="top" 97 android:layout_marginEnd="@dimen/current_wallpaper_bottom_sheet_margin_sides" 98 android:layout_marginRight="@dimen/current_wallpaper_bottom_sheet_margin_sides" 99 android:orientation="vertical"> 100 101 <TextView 102 android:id="@+id/current_wallpaper_presentation_mode" 103 android:layout_width="match_parent" 104 android:layout_height="wrap_content" 105 android:layout_marginLeft="@dimen/current_wallpaper_bottom_sheet_margin_sides" 106 android:layout_marginStart="@dimen/current_wallpaper_bottom_sheet_margin_sides" 107 android:layout_marginTop="@dimen/current_wallpaper_bottom_sheet_presentation_mode_margin_top" 108 android:textColor="@color/accent_color" 109 android:textSize="@dimen/current_wallpaper_bottom_sheet_presentation_mode_text_size" 110 android:textStyle="bold" /> 111 112 <TextView 113 android:id="@+id/current_wallpaper_title" 114 android:layout_width="match_parent" 115 android:layout_height="wrap_content" 116 android:layout_marginLeft="@dimen/current_wallpaper_bottom_sheet_margin_sides" 117 android:layout_marginStart="@dimen/current_wallpaper_bottom_sheet_margin_sides" 118 android:layout_marginTop="@dimen/current_wallpaper_bottom_sheet_title_margin_top" 119 android:ellipsize="end" 120 android:maxLines="2" 121 android:textColor="@color/material_white_text" 122 android:textSize="@dimen/current_wallpaper_bottom_sheet_title_text_size" /> 123 124 <TextView 125 android:id="@+id/current_wallpaper_subtitle" 126 android:layout_width="match_parent" 127 android:layout_height="wrap_content" 128 android:layout_marginLeft="@dimen/current_wallpaper_bottom_sheet_margin_sides" 129 android:layout_marginStart="@dimen/current_wallpaper_bottom_sheet_margin_sides" 130 android:layout_marginTop="@dimen/current_wallpaper_bottom_sheet_subtitle_margin_top" 131 android:ellipsize="end" 132 android:maxLines="2" 133 android:textColor="@color/white_70_alpha" 134 android:textSize="@dimen/current_wallpaper_bottom_sheet_subtitle_text_size" /> 135 136 <LinearLayout 137 android:layout_width="match_parent" 138 android:layout_height="wrap_content" 139 android:orientation="horizontal"> 140 141 <Button 142 android:id="@+id/current_wallpaper_explore_button" 143 style="?attr/borderlessButtonStyle" 144 android:layout_width="wrap_content" 145 android:layout_height="wrap_content" 146 android:layout_marginEnd="@dimen/current_wallpaper_bottom_sheet_explore_button_margin_end" 147 android:layout_marginLeft="@dimen/current_wallpaper_bottom_sheet_explore_button_margin_start" 148 android:layout_marginRight="@dimen/current_wallpaper_bottom_sheet_explore_button_margin_end" 149 android:layout_marginStart="@dimen/current_wallpaper_bottom_sheet_explore_button_margin_start" 150 android:layout_marginTop="@dimen/current_wallpaper_bottom_sheet_explore_button_margin_top" 151 android:clickable="true" 152 android:contentDescription="@string/explore" 153 android:drawablePadding="@dimen/explore_button_drawable_padding" 154 android:focusable="true" 155 android:text="@string/explore" 156 android:textColor="@color/accent_color" 157 android:textSize="@dimen/current_wallpaper_bottom_sheet_explore_button_text_size" 158 android:visibility="gone" /> 159 160 <Button 161 android:id="@+id/current_wallpaper_skip_wallpaper_button" 162 style="?attr/borderlessButtonStyle" 163 android:layout_width="wrap_content" 164 android:layout_height="wrap_content" 165 android:layout_marginTop="@dimen/current_wallpaper_bottom_sheet_explore_button_margin_top" 166 android:clickable="true" 167 android:contentDescription="@string/next_wallpaper" 168 android:drawablePadding="@dimen/explore_button_drawable_padding" 169 android:focusable="true" 170 android:text="@string/next_wallpaper" 171 android:textColor="@color/accent_color" 172 android:textSize="@dimen/current_wallpaper_bottom_sheet_explore_button_text_size" 173 android:visibility="gone" /> 174 175 </LinearLayout> 176 177 <LinearLayout 178 android:id="@+id/desktop_wallpaper_position_options" 179 android:layout_width="match_parent" 180 android:layout_height="wrap_content" 181 android:orientation="horizontal" 182 android:visibility="gone"> 183 184 <Button 185 android:id="@+id/wallpaper_position_option_center" 186 style="?attr/borderlessButtonStyle" 187 android:layout_width="wrap_content" 188 android:layout_height="wrap_content" 189 android:drawablePadding="@dimen/current_wallpaper_bottom_sheet_wallpaper_position_drawable_padding" 190 android:text="@string/center_wallpaper_position" 191 android:textColor="@color/material_grey500" /> 192 193 <Button 194 android:id="@+id/wallpaper_position_option_center_crop" 195 style="?attr/borderlessButtonStyle" 196 android:layout_width="wrap_content" 197 android:layout_height="wrap_content" 198 android:drawablePadding="@dimen/current_wallpaper_bottom_sheet_wallpaper_position_drawable_padding" 199 android:text="@string/center_crop_wallpaper_position" 200 android:textColor="@color/material_grey500" /> 201 202 <Button 203 android:id="@+id/wallpaper_position_option_stretched" 204 style="?attr/borderlessButtonStyle" 205 android:layout_width="wrap_content" 206 android:layout_height="wrap_content" 207 android:drawablePadding="@dimen/current_wallpaper_bottom_sheet_wallpaper_position_drawable_padding" 208 android:text="@string/stretch_wallpaper_position" 209 android:textColor="@color/material_grey500" /> 210 211 </LinearLayout> 212 213 </LinearLayout> 214 215 </FrameLayout> 216 217 </LinearLayout> 218 219 </LinearLayout> 220 221 </androidx.coordinatorlayout.widget.CoordinatorLayout> 222 223</FrameLayout> 224