Chuck Liao | 8ec38e0 | 2020-02-26 20:59:32 +0800 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?><!-- |
| 2 | Copyright (C) 2020 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 | --> |
chihhangchuang | 450d3da | 2020-06-22 18:03:06 +0800 | [diff] [blame] | 16 | <RelativeLayout |
chihhangchuang | 22aa0cc | 2020-03-25 19:12:42 +0800 | [diff] [blame] | 17 | xmlns:android="http://schemas.android.com/apk/res/android" |
Chuck Liao | 8ec38e0 | 2020-02-26 20:59:32 +0800 | [diff] [blame] | 18 | xmlns:app="http://schemas.android.com/apk/res-auto" |
| 19 | android:layout_width="match_parent" |
chihhangchuang | 22aa0cc | 2020-03-25 19:12:42 +0800 | [diff] [blame] | 20 | android:layout_height="wrap_content" |
chihhangchuang | 450d3da | 2020-06-22 18:03:06 +0800 | [diff] [blame] | 21 | android:clipChildren="false"> |
Chuck Liao | 8ec38e0 | 2020-02-26 20:59:32 +0800 | [diff] [blame] | 22 | |
chihhangchuang | 22aa0cc | 2020-03-25 19:12:42 +0800 | [diff] [blame] | 23 | <!-- Bottom Sheet --> |
| 24 | <androidx.coordinatorlayout.widget.CoordinatorLayout |
| 25 | android:layout_width="match_parent" |
chihhangchuang | 450d3da | 2020-06-22 18:03:06 +0800 | [diff] [blame] | 26 | android:layout_height="wrap_content" |
Pierre-Louis | e7e3a1e | 2021-04-10 13:51:29 +0200 | [diff] [blame^] | 27 | android:layout_above="@id/action_tabs"> |
chihhangchuang | 22aa0cc | 2020-03-25 19:12:42 +0800 | [diff] [blame] | 28 | <!-- Bottom sheet view should be a child view of CoordinatorLayout --> |
| 29 | <FrameLayout |
| 30 | android:id="@+id/action_bottom_sheet" |
| 31 | android:layout_width="match_parent" |
| 32 | android:layout_height="wrap_content" |
Pierre-Louis | e7e3a1e | 2021-04-10 13:51:29 +0200 | [diff] [blame^] | 33 | android:layout_marginHorizontal="@dimen/bottom_sheet_margin" |
chihhangchuang | 22aa0cc | 2020-03-25 19:12:42 +0800 | [diff] [blame] | 34 | android:background="@drawable/bottom_sheet_background" |
| 35 | android:theme="@style/WallpaperPicker.BottomPaneStyle" |
chihhangchuang | fd5326f | 2020-06-09 14:14:00 +0800 | [diff] [blame] | 36 | android:clickable="true" |
chihhangchuang | 22aa0cc | 2020-03-25 19:12:42 +0800 | [diff] [blame] | 37 | app:behavior_peekHeight="@dimen/preview_attribution_pane_collapsed_height" |
chihhangchuang | 450d3da | 2020-06-22 18:03:06 +0800 | [diff] [blame] | 38 | app:layout_behavior="com.android.wallpaper.widget.BottomActionBar$QueueStateBottomSheetBehavior" /> |
chihhangchuang | 22aa0cc | 2020-03-25 19:12:42 +0800 | [diff] [blame] | 39 | </androidx.coordinatorlayout.widget.CoordinatorLayout> |
Chuck Liao | 8ec38e0 | 2020-02-26 20:59:32 +0800 | [diff] [blame] | 40 | |
chihhangchuang | 22aa0cc | 2020-03-25 19:12:42 +0800 | [diff] [blame] | 41 | <!-- Bottom Tabs --> |
| 42 | <androidx.constraintlayout.widget.ConstraintLayout |
chihhangchuang | 450d3da | 2020-06-22 18:03:06 +0800 | [diff] [blame] | 43 | android:id="@+id/action_tabs" |
chihhangchuang | 22aa0cc | 2020-03-25 19:12:42 +0800 | [diff] [blame] | 44 | android:layout_width="match_parent" |
| 45 | android:layout_height="@dimen/bottom_navbar_height" |
chihhangchuang | 22aa0cc | 2020-03-25 19:12:42 +0800 | [diff] [blame] | 46 | android:clickable="true" |
Pierre-Louis | e7e3a1e | 2021-04-10 13:51:29 +0200 | [diff] [blame^] | 47 | android:background="?android:colorBackground" |
chihhangchuang | 8126d32 | 2020-04-23 13:27:22 +0800 | [diff] [blame] | 48 | android:theme="@style/BottomActionItemStyle" |
chihhangchuang | 450d3da | 2020-06-22 18:03:06 +0800 | [diff] [blame] | 49 | android:layout_alignParentBottom="true" |
chihhangchuang | 8126d32 | 2020-04-23 13:27:22 +0800 | [diff] [blame] | 50 | android:layoutDirection="locale"> |
Chuck Liao | 8ec38e0 | 2020-02-26 20:59:32 +0800 | [diff] [blame] | 51 | |
chihhangchuang | 22aa0cc | 2020-03-25 19:12:42 +0800 | [diff] [blame] | 52 | <ImageView |
chihhangchuang | 08abb58 | 2020-04-27 17:20:31 +0800 | [diff] [blame] | 53 | android:id="@+id/action_back" |
Pierre-Louis | e7e3a1e | 2021-04-10 13:51:29 +0200 | [diff] [blame^] | 54 | android:layout_width="@dimen/bottom_action_button_width" |
| 55 | android:layout_height="@dimen/bottom_action_button_height" |
chihhangchuang | 22aa0cc | 2020-03-25 19:12:42 +0800 | [diff] [blame] | 56 | android:src="@drawable/ic_close_gm2_24px" |
chihhangchuang | 50d6122 | 2020-04-24 17:06:00 +0800 | [diff] [blame] | 57 | android:contentDescription="@string/bottom_action_bar_back" |
Pierre-Louis | e7e3a1e | 2021-04-10 13:51:29 +0200 | [diff] [blame^] | 58 | android:visibility="gone" |
chihhangchuang | 8126d32 | 2020-04-23 13:27:22 +0800 | [diff] [blame] | 59 | app:layout_constraintTop_toTopOf="parent" |
chihhangchuang | 22aa0cc | 2020-03-25 19:12:42 +0800 | [diff] [blame] | 60 | app:layout_constraintEnd_toStartOf="@id/action_rotation" |
| 61 | app:layout_constraintHorizontal_chainStyle="spread_inside" |
| 62 | app:layout_constraintStart_toStartOf="parent" /> |
Chuck Liao | 8ec38e0 | 2020-02-26 20:59:32 +0800 | [diff] [blame] | 63 | |
chihhangchuang | 22aa0cc | 2020-03-25 19:12:42 +0800 | [diff] [blame] | 64 | <ImageView |
| 65 | android:id="@+id/action_rotation" |
Pierre-Louis | e7e3a1e | 2021-04-10 13:51:29 +0200 | [diff] [blame^] | 66 | android:layout_width="@dimen/bottom_action_button_width" |
| 67 | android:layout_height="@dimen/bottom_action_button_height" |
chihhangchuang | 50d6122 | 2020-04-24 17:06:00 +0800 | [diff] [blame] | 68 | android:src="@drawable/ic_slideshow_24dp" |
chihhangchuang | 50d6122 | 2020-04-24 17:06:00 +0800 | [diff] [blame] | 69 | android:contentDescription="@string/bottom_action_bar_slideshow_wallpaper" |
chihhangchuang | 22aa0cc | 2020-03-25 19:12:42 +0800 | [diff] [blame] | 70 | android:visibility="gone" |
chihhangchuang | 8126d32 | 2020-04-23 13:27:22 +0800 | [diff] [blame] | 71 | app:layout_constraintTop_toTopOf="parent" |
Ching-Sung Li | 073812b | 2020-04-07 21:19:21 +0800 | [diff] [blame] | 72 | app:layout_constraintEnd_toStartOf="@id/action_delete" |
chihhangchuang | 08abb58 | 2020-04-27 17:20:31 +0800 | [diff] [blame] | 73 | app:layout_constraintStart_toEndOf="@id/action_back" /> |
Chuck Liao | 8ec38e0 | 2020-02-26 20:59:32 +0800 | [diff] [blame] | 74 | |
chihhangchuang | 22aa0cc | 2020-03-25 19:12:42 +0800 | [diff] [blame] | 75 | <ImageView |
Ching-Sung Li | 073812b | 2020-04-07 21:19:21 +0800 | [diff] [blame] | 76 | android:id="@+id/action_delete" |
Pierre-Louis | e7e3a1e | 2021-04-10 13:51:29 +0200 | [diff] [blame^] | 77 | android:layout_width="@dimen/bottom_action_button_width" |
| 78 | android:layout_height="@dimen/bottom_action_button_height" |
chihhangchuang | 50d6122 | 2020-04-24 17:06:00 +0800 | [diff] [blame] | 79 | android:contentDescription="@string/delete_live_wallpaper" |
Pierre-Louis | e7e3a1e | 2021-04-10 13:51:29 +0200 | [diff] [blame^] | 80 | android:src="@drawable/ic_delete_24px" |
Ching-Sung Li | 073812b | 2020-04-07 21:19:21 +0800 | [diff] [blame] | 81 | android:visibility="gone" |
| 82 | app:layout_constraintEnd_toStartOf="@id/action_information" |
Pierre-Louis | e7e3a1e | 2021-04-10 13:51:29 +0200 | [diff] [blame^] | 83 | app:layout_constraintStart_toEndOf="@id/action_rotation" |
| 84 | app:layout_constraintTop_toTopOf="parent" /> |
Ching-Sung Li | 073812b | 2020-04-07 21:19:21 +0800 | [diff] [blame] | 85 | |
| 86 | <ImageView |
chihhangchuang | 22aa0cc | 2020-03-25 19:12:42 +0800 | [diff] [blame] | 87 | android:id="@+id/action_information" |
Pierre-Louis | e7e3a1e | 2021-04-10 13:51:29 +0200 | [diff] [blame^] | 88 | android:layout_width="@dimen/bottom_action_button_width" |
| 89 | android:layout_height="@dimen/bottom_action_button_height" |
chihhangchuang | 22aa0cc | 2020-03-25 19:12:42 +0800 | [diff] [blame] | 90 | android:src="@drawable/ic_info_gm2_24px" |
chihhangchuang | 50d6122 | 2020-04-24 17:06:00 +0800 | [diff] [blame] | 91 | android:contentDescription="@string/tab_info" |
chihhangchuang | 22aa0cc | 2020-03-25 19:12:42 +0800 | [diff] [blame] | 92 | android:visibility="gone" |
chihhangchuang | 8126d32 | 2020-04-23 13:27:22 +0800 | [diff] [blame] | 93 | app:layout_constraintTop_toTopOf="parent" |
chihhangchuang | 22aa0cc | 2020-03-25 19:12:42 +0800 | [diff] [blame] | 94 | app:layout_constraintEnd_toStartOf="@id/action_edit" |
Ching-Sung Li | 073812b | 2020-04-07 21:19:21 +0800 | [diff] [blame] | 95 | app:layout_constraintStart_toEndOf="@id/action_delete" /> |
Chuck Liao | 8ec38e0 | 2020-02-26 20:59:32 +0800 | [diff] [blame] | 96 | |
chihhangchuang | 22aa0cc | 2020-03-25 19:12:42 +0800 | [diff] [blame] | 97 | <ImageView |
| 98 | android:id="@+id/action_edit" |
Pierre-Louis | e7e3a1e | 2021-04-10 13:51:29 +0200 | [diff] [blame^] | 99 | android:layout_width="@dimen/bottom_action_button_width" |
| 100 | android:layout_height="@dimen/bottom_action_button_height" |
chihhangchuang | 3e064a1 | 2020-04-28 08:48:37 +0800 | [diff] [blame] | 101 | android:src="@drawable/ic_pan_zoom_24dp" |
chihhangchuang | 08abb58 | 2020-04-27 17:20:31 +0800 | [diff] [blame] | 102 | android:contentDescription="@string/bottom_action_bar_edit" |
| 103 | android:visibility="gone" |
| 104 | app:layout_constraintTop_toTopOf="parent" |
| 105 | app:layout_constraintEnd_toStartOf="@id/action_customize" |
| 106 | app:layout_constraintStart_toEndOf="@id/action_information" /> |
| 107 | |
| 108 | <ImageView |
| 109 | android:id="@+id/action_customize" |
Pierre-Louis | e7e3a1e | 2021-04-10 13:51:29 +0200 | [diff] [blame^] | 110 | android:layout_width="@dimen/bottom_action_button_width" |
| 111 | android:layout_height="@dimen/bottom_action_button_height" |
chihhangchuang | 50d6122 | 2020-04-24 17:06:00 +0800 | [diff] [blame] | 112 | android:src="@drawable/ic_tune_black_24dp" |
chihhangchuang | 50d6122 | 2020-04-24 17:06:00 +0800 | [diff] [blame] | 113 | android:contentDescription="@string/tab_customize" |
| 114 | android:visibility="gone" |
chihhangchuang | 8126d32 | 2020-04-23 13:27:22 +0800 | [diff] [blame] | 115 | app:layout_constraintTop_toTopOf="parent" |
Ching-Sung Li | 073812b | 2020-04-07 21:19:21 +0800 | [diff] [blame] | 116 | app:layout_constraintEnd_toStartOf="@id/action_download" |
chihhangchuang | 08abb58 | 2020-04-27 17:20:31 +0800 | [diff] [blame] | 117 | app:layout_constraintStart_toEndOf="@id/action_edit" /> |
chihhangchuang | 22aa0cc | 2020-03-25 19:12:42 +0800 | [diff] [blame] | 118 | |
| 119 | <ImageView |
Ching-Sung Li | 073812b | 2020-04-07 21:19:21 +0800 | [diff] [blame] | 120 | android:id="@+id/action_download" |
Pierre-Louis | e7e3a1e | 2021-04-10 13:51:29 +0200 | [diff] [blame^] | 121 | android:layout_width="@dimen/bottom_action_button_width" |
| 122 | android:layout_height="@dimen/bottom_action_button_height" |
Ching-Sung Li | 073812b | 2020-04-07 21:19:21 +0800 | [diff] [blame] | 123 | android:src="@drawable/ic_file_download_gm2_24px" |
chihhangchuang | 50d6122 | 2020-04-24 17:06:00 +0800 | [diff] [blame] | 124 | android:contentDescription="@string/bottom_action_bar_download" |
Ching-Sung Li | 073812b | 2020-04-07 21:19:21 +0800 | [diff] [blame] | 125 | android:visibility="gone" |
chihhangchuang | 8126d32 | 2020-04-23 13:27:22 +0800 | [diff] [blame] | 126 | app:layout_constraintTop_toTopOf="parent" |
Ching-Sung Li | 073812b | 2020-04-07 21:19:21 +0800 | [diff] [blame] | 127 | app:layout_constraintEnd_toStartOf="@id/action_progress" |
chihhangchuang | 08abb58 | 2020-04-27 17:20:31 +0800 | [diff] [blame] | 128 | app:layout_constraintStart_toEndOf="@id/action_customize" /> |
Ching-Sung Li | 073812b | 2020-04-07 21:19:21 +0800 | [diff] [blame] | 129 | |
| 130 | <ProgressBar |
| 131 | android:id="@+id/action_progress" |
Pierre-Louis | e7e3a1e | 2021-04-10 13:51:29 +0200 | [diff] [blame^] | 132 | android:layout_width="@dimen/bottom_action_button_width" |
| 133 | android:layout_height="@dimen/bottom_action_button_height" |
Ching-Sung Li | 073812b | 2020-04-07 21:19:21 +0800 | [diff] [blame] | 134 | android:visibility="gone" |
chihhangchuang | 8126d32 | 2020-04-23 13:27:22 +0800 | [diff] [blame] | 135 | app:layout_constraintTop_toTopOf="parent" |
Ching-Sung Li | 073812b | 2020-04-07 21:19:21 +0800 | [diff] [blame] | 136 | app:layout_constraintEnd_toStartOf="@id/action_apply" |
| 137 | app:layout_constraintStart_toEndOf="@id/action_download" /> |
| 138 | |
| 139 | <ImageView |
chihhangchuang | 22aa0cc | 2020-03-25 19:12:42 +0800 | [diff] [blame] | 140 | android:id="@+id/action_apply" |
Pierre-Louis | e7e3a1e | 2021-04-10 13:51:29 +0200 | [diff] [blame^] | 141 | android:layout_width="@dimen/bottom_action_button_width" |
| 142 | android:layout_height="@dimen/bottom_action_button_height" |
chihhangchuang | 22aa0cc | 2020-03-25 19:12:42 +0800 | [diff] [blame] | 143 | android:src="@drawable/ic_done_gm2_24px" |
chihhangchuang | 50d6122 | 2020-04-24 17:06:00 +0800 | [diff] [blame] | 144 | android:contentDescription="@string/bottom_action_bar_apply" |
chihhangchuang | 22aa0cc | 2020-03-25 19:12:42 +0800 | [diff] [blame] | 145 | android:visibility="gone" |
chihhangchuang | 8126d32 | 2020-04-23 13:27:22 +0800 | [diff] [blame] | 146 | app:layout_constraintTop_toTopOf="parent" |
chihhangchuang | 22aa0cc | 2020-03-25 19:12:42 +0800 | [diff] [blame] | 147 | app:layout_constraintEnd_toEndOf="parent" |
Ching-Sung Li | 073812b | 2020-04-07 21:19:21 +0800 | [diff] [blame] | 148 | app:layout_constraintStart_toEndOf="@id/action_progress" /> |
chihhangchuang | 22aa0cc | 2020-03-25 19:12:42 +0800 | [diff] [blame] | 149 | |
| 150 | </androidx.constraintlayout.widget.ConstraintLayout> |
chihhangchuang | 450d3da | 2020-06-22 18:03:06 +0800 | [diff] [blame] | 151 | </RelativeLayout> |