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