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" |
Pierre-Louis | 2006ab7 | 2021-04-20 21:22:58 +0200 | [diff] [blame] | 37 | app:behavior_peekHeight="0dp" |
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" |
Pierre-Louis | 7e85986 | 2021-04-28 15:25:29 +0200 | [diff] [blame] | 45 | android:layout_height="@dimen/bottom_actions_height" |
| 46 | android:paddingTop="@dimen/bottom_actions_top_padding" |
| 47 | android:paddingBottom="@dimen/bottom_actions_bottom_padding" |
Pierre-Louis | e7e3a1e | 2021-04-10 13:51:29 +0200 | [diff] [blame] | 48 | android:background="?android:colorBackground" |
chihhangchuang | 8126d32 | 2020-04-23 13:27:22 +0800 | [diff] [blame] | 49 | android:theme="@style/BottomActionItemStyle" |
chihhangchuang | 450d3da | 2020-06-22 18:03:06 +0800 | [diff] [blame] | 50 | android:layout_alignParentBottom="true" |
chihhangchuang | 8126d32 | 2020-04-23 13:27:22 +0800 | [diff] [blame] | 51 | android:layoutDirection="locale"> |
Chuck Liao | 8ec38e0 | 2020-02-26 20:59:32 +0800 | [diff] [blame] | 52 | |
chihhangchuang | 22aa0cc | 2020-03-25 19:12:42 +0800 | [diff] [blame] | 53 | <ImageView |
chihhangchuang | 08abb58 | 2020-04-27 17:20:31 +0800 | [diff] [blame] | 54 | android:id="@+id/action_back" |
Pierre-Louis | e7e3a1e | 2021-04-10 13:51:29 +0200 | [diff] [blame] | 55 | android:layout_width="@dimen/bottom_action_button_width" |
| 56 | android:layout_height="@dimen/bottom_action_button_height" |
chihhangchuang | 22aa0cc | 2020-03-25 19:12:42 +0800 | [diff] [blame] | 57 | android:src="@drawable/ic_close_gm2_24px" |
chihhangchuang | 50d6122 | 2020-04-24 17:06:00 +0800 | [diff] [blame] | 58 | android:contentDescription="@string/bottom_action_bar_back" |
Pierre-Louis | e7e3a1e | 2021-04-10 13:51:29 +0200 | [diff] [blame] | 59 | android:visibility="gone" |
chihhangchuang | 8126d32 | 2020-04-23 13:27:22 +0800 | [diff] [blame] | 60 | app:layout_constraintTop_toTopOf="parent" |
Pierre-Louis | 7e85986 | 2021-04-28 15:25:29 +0200 | [diff] [blame] | 61 | app:layout_constraintBottom_toBottomOf="parent" |
chihhangchuang | 22aa0cc | 2020-03-25 19:12:42 +0800 | [diff] [blame] | 62 | app:layout_constraintEnd_toStartOf="@id/action_rotation" |
| 63 | app:layout_constraintHorizontal_chainStyle="spread_inside" |
| 64 | app:layout_constraintStart_toStartOf="parent" /> |
Chuck Liao | 8ec38e0 | 2020-02-26 20:59:32 +0800 | [diff] [blame] | 65 | |
chihhangchuang | 22aa0cc | 2020-03-25 19:12:42 +0800 | [diff] [blame] | 66 | <ImageView |
| 67 | android:id="@+id/action_rotation" |
Pierre-Louis | e7e3a1e | 2021-04-10 13:51:29 +0200 | [diff] [blame] | 68 | android:layout_width="@dimen/bottom_action_button_width" |
| 69 | android:layout_height="@dimen/bottom_action_button_height" |
chihhangchuang | 50d6122 | 2020-04-24 17:06:00 +0800 | [diff] [blame] | 70 | android:src="@drawable/ic_slideshow_24dp" |
chihhangchuang | 50d6122 | 2020-04-24 17:06:00 +0800 | [diff] [blame] | 71 | android:contentDescription="@string/bottom_action_bar_slideshow_wallpaper" |
chihhangchuang | 22aa0cc | 2020-03-25 19:12:42 +0800 | [diff] [blame] | 72 | android:visibility="gone" |
chihhangchuang | 8126d32 | 2020-04-23 13:27:22 +0800 | [diff] [blame] | 73 | app:layout_constraintTop_toTopOf="parent" |
Pierre-Louis | 7e85986 | 2021-04-28 15:25:29 +0200 | [diff] [blame] | 74 | app:layout_constraintBottom_toBottomOf="parent" |
Ching-Sung Li | 073812b | 2020-04-07 21:19:21 +0800 | [diff] [blame] | 75 | app:layout_constraintEnd_toStartOf="@id/action_delete" |
chihhangchuang | 08abb58 | 2020-04-27 17:20:31 +0800 | [diff] [blame] | 76 | app:layout_constraintStart_toEndOf="@id/action_back" /> |
Chuck Liao | 8ec38e0 | 2020-02-26 20:59:32 +0800 | [diff] [blame] | 77 | |
chihhangchuang | 22aa0cc | 2020-03-25 19:12:42 +0800 | [diff] [blame] | 78 | <ImageView |
Ching-Sung Li | 073812b | 2020-04-07 21:19:21 +0800 | [diff] [blame] | 79 | android:id="@+id/action_delete" |
Pierre-Louis | e7e3a1e | 2021-04-10 13:51:29 +0200 | [diff] [blame] | 80 | android:layout_width="@dimen/bottom_action_button_width" |
| 81 | android:layout_height="@dimen/bottom_action_button_height" |
chihhangchuang | 50d6122 | 2020-04-24 17:06:00 +0800 | [diff] [blame] | 82 | android:contentDescription="@string/delete_live_wallpaper" |
Pierre-Louis | e7e3a1e | 2021-04-10 13:51:29 +0200 | [diff] [blame] | 83 | android:src="@drawable/ic_delete_24px" |
Ching-Sung Li | 073812b | 2020-04-07 21:19:21 +0800 | [diff] [blame] | 84 | android:visibility="gone" |
Pierre-Louis | 7e85986 | 2021-04-28 15:25:29 +0200 | [diff] [blame] | 85 | app:layout_constraintTop_toTopOf="parent" |
| 86 | app:layout_constraintBottom_toBottomOf="parent" |
Ching-Sung Li | 073812b | 2020-04-07 21:19:21 +0800 | [diff] [blame] | 87 | app:layout_constraintEnd_toStartOf="@id/action_information" |
Pierre-Louis | 7e85986 | 2021-04-28 15:25:29 +0200 | [diff] [blame] | 88 | app:layout_constraintStart_toEndOf="@id/action_rotation" /> |
Ching-Sung Li | 073812b | 2020-04-07 21:19:21 +0800 | [diff] [blame] | 89 | |
| 90 | <ImageView |
chihhangchuang | 22aa0cc | 2020-03-25 19:12:42 +0800 | [diff] [blame] | 91 | android:id="@+id/action_information" |
Pierre-Louis | e7e3a1e | 2021-04-10 13:51:29 +0200 | [diff] [blame] | 92 | android:layout_width="@dimen/bottom_action_button_width" |
| 93 | android:layout_height="@dimen/bottom_action_button_height" |
chihhangchuang | 22aa0cc | 2020-03-25 19:12:42 +0800 | [diff] [blame] | 94 | android:src="@drawable/ic_info_gm2_24px" |
chihhangchuang | 50d6122 | 2020-04-24 17:06:00 +0800 | [diff] [blame] | 95 | android:contentDescription="@string/tab_info" |
chihhangchuang | 22aa0cc | 2020-03-25 19:12:42 +0800 | [diff] [blame] | 96 | android:visibility="gone" |
chihhangchuang | 8126d32 | 2020-04-23 13:27:22 +0800 | [diff] [blame] | 97 | app:layout_constraintTop_toTopOf="parent" |
Pierre-Louis | 7e85986 | 2021-04-28 15:25:29 +0200 | [diff] [blame] | 98 | app:layout_constraintBottom_toBottomOf="parent" |
chihhangchuang | 22aa0cc | 2020-03-25 19:12:42 +0800 | [diff] [blame] | 99 | app:layout_constraintEnd_toStartOf="@id/action_edit" |
Ching-Sung Li | 073812b | 2020-04-07 21:19:21 +0800 | [diff] [blame] | 100 | app:layout_constraintStart_toEndOf="@id/action_delete" /> |
Chuck Liao | 8ec38e0 | 2020-02-26 20:59:32 +0800 | [diff] [blame] | 101 | |
chihhangchuang | 22aa0cc | 2020-03-25 19:12:42 +0800 | [diff] [blame] | 102 | <ImageView |
| 103 | android:id="@+id/action_edit" |
Pierre-Louis | e7e3a1e | 2021-04-10 13:51:29 +0200 | [diff] [blame] | 104 | android:layout_width="@dimen/bottom_action_button_width" |
| 105 | android:layout_height="@dimen/bottom_action_button_height" |
chihhangchuang | 3e064a1 | 2020-04-28 08:48:37 +0800 | [diff] [blame] | 106 | android:src="@drawable/ic_pan_zoom_24dp" |
chihhangchuang | 08abb58 | 2020-04-27 17:20:31 +0800 | [diff] [blame] | 107 | android:contentDescription="@string/bottom_action_bar_edit" |
| 108 | android:visibility="gone" |
| 109 | app:layout_constraintTop_toTopOf="parent" |
Pierre-Louis | 7e85986 | 2021-04-28 15:25:29 +0200 | [diff] [blame] | 110 | app:layout_constraintBottom_toBottomOf="parent" |
chihhangchuang | 08abb58 | 2020-04-27 17:20:31 +0800 | [diff] [blame] | 111 | app:layout_constraintEnd_toStartOf="@id/action_customize" |
| 112 | app:layout_constraintStart_toEndOf="@id/action_information" /> |
| 113 | |
| 114 | <ImageView |
| 115 | android:id="@+id/action_customize" |
Pierre-Louis | e7e3a1e | 2021-04-10 13:51:29 +0200 | [diff] [blame] | 116 | android:layout_width="@dimen/bottom_action_button_width" |
| 117 | android:layout_height="@dimen/bottom_action_button_height" |
chihhangchuang | 50d6122 | 2020-04-24 17:06:00 +0800 | [diff] [blame] | 118 | android:src="@drawable/ic_tune_black_24dp" |
chihhangchuang | 50d6122 | 2020-04-24 17:06:00 +0800 | [diff] [blame] | 119 | android:contentDescription="@string/tab_customize" |
| 120 | android:visibility="gone" |
chihhangchuang | 8126d32 | 2020-04-23 13:27:22 +0800 | [diff] [blame] | 121 | app:layout_constraintTop_toTopOf="parent" |
Pierre-Louis | 7e85986 | 2021-04-28 15:25:29 +0200 | [diff] [blame] | 122 | app:layout_constraintBottom_toBottomOf="parent" |
Ching-Sung Li | 073812b | 2020-04-07 21:19:21 +0800 | [diff] [blame] | 123 | app:layout_constraintEnd_toStartOf="@id/action_download" |
chihhangchuang | 08abb58 | 2020-04-27 17:20:31 +0800 | [diff] [blame] | 124 | app:layout_constraintStart_toEndOf="@id/action_edit" /> |
chihhangchuang | 22aa0cc | 2020-03-25 19:12:42 +0800 | [diff] [blame] | 125 | |
| 126 | <ImageView |
Ching-Sung Li | 073812b | 2020-04-07 21:19:21 +0800 | [diff] [blame] | 127 | android:id="@+id/action_download" |
Pierre-Louis | e7e3a1e | 2021-04-10 13:51:29 +0200 | [diff] [blame] | 128 | android:layout_width="@dimen/bottom_action_button_width" |
| 129 | android:layout_height="@dimen/bottom_action_button_height" |
Ching-Sung Li | 073812b | 2020-04-07 21:19:21 +0800 | [diff] [blame] | 130 | android:src="@drawable/ic_file_download_gm2_24px" |
chihhangchuang | 50d6122 | 2020-04-24 17:06:00 +0800 | [diff] [blame] | 131 | android:contentDescription="@string/bottom_action_bar_download" |
Ching-Sung Li | 073812b | 2020-04-07 21:19:21 +0800 | [diff] [blame] | 132 | android:visibility="gone" |
chihhangchuang | 8126d32 | 2020-04-23 13:27:22 +0800 | [diff] [blame] | 133 | app:layout_constraintTop_toTopOf="parent" |
Pierre-Louis | 7e85986 | 2021-04-28 15:25:29 +0200 | [diff] [blame] | 134 | app:layout_constraintBottom_toBottomOf="parent" |
Ching-Sung Li | 073812b | 2020-04-07 21:19:21 +0800 | [diff] [blame] | 135 | app:layout_constraintEnd_toStartOf="@id/action_progress" |
chihhangchuang | 08abb58 | 2020-04-27 17:20:31 +0800 | [diff] [blame] | 136 | app:layout_constraintStart_toEndOf="@id/action_customize" /> |
Ching-Sung Li | 073812b | 2020-04-07 21:19:21 +0800 | [diff] [blame] | 137 | |
| 138 | <ProgressBar |
| 139 | android:id="@+id/action_progress" |
Pierre-Louis | e7e3a1e | 2021-04-10 13:51:29 +0200 | [diff] [blame] | 140 | android:layout_width="@dimen/bottom_action_button_width" |
| 141 | android:layout_height="@dimen/bottom_action_button_height" |
Ching-Sung Li | 073812b | 2020-04-07 21:19:21 +0800 | [diff] [blame] | 142 | android:visibility="gone" |
chihhangchuang | 8126d32 | 2020-04-23 13:27:22 +0800 | [diff] [blame] | 143 | app:layout_constraintTop_toTopOf="parent" |
Pierre-Louis | 7e85986 | 2021-04-28 15:25:29 +0200 | [diff] [blame] | 144 | app:layout_constraintBottom_toBottomOf="parent" |
Ching-Sung Li | 073812b | 2020-04-07 21:19:21 +0800 | [diff] [blame] | 145 | app:layout_constraintEnd_toStartOf="@id/action_apply" |
| 146 | app:layout_constraintStart_toEndOf="@id/action_download" /> |
| 147 | |
| 148 | <ImageView |
chihhangchuang | 22aa0cc | 2020-03-25 19:12:42 +0800 | [diff] [blame] | 149 | android:id="@+id/action_apply" |
Pierre-Louis | e7e3a1e | 2021-04-10 13:51:29 +0200 | [diff] [blame] | 150 | android:layout_width="@dimen/bottom_action_button_width" |
| 151 | android:layout_height="@dimen/bottom_action_button_height" |
chihhangchuang | 22aa0cc | 2020-03-25 19:12:42 +0800 | [diff] [blame] | 152 | android:src="@drawable/ic_done_gm2_24px" |
chihhangchuang | 50d6122 | 2020-04-24 17:06:00 +0800 | [diff] [blame] | 153 | android:contentDescription="@string/bottom_action_bar_apply" |
chihhangchuang | 22aa0cc | 2020-03-25 19:12:42 +0800 | [diff] [blame] | 154 | android:visibility="gone" |
chihhangchuang | 8126d32 | 2020-04-23 13:27:22 +0800 | [diff] [blame] | 155 | app:layout_constraintTop_toTopOf="parent" |
Pierre-Louis | 7e85986 | 2021-04-28 15:25:29 +0200 | [diff] [blame] | 156 | app:layout_constraintBottom_toBottomOf="parent" |
chihhangchuang | 22aa0cc | 2020-03-25 19:12:42 +0800 | [diff] [blame] | 157 | app:layout_constraintEnd_toEndOf="parent" |
Ching-Sung Li | 073812b | 2020-04-07 21:19:21 +0800 | [diff] [blame] | 158 | app:layout_constraintStart_toEndOf="@id/action_progress" /> |
chihhangchuang | 22aa0cc | 2020-03-25 19:12:42 +0800 | [diff] [blame] | 159 | |
| 160 | </androidx.constraintlayout.widget.ConstraintLayout> |
chihhangchuang | 450d3da | 2020-06-22 18:03:06 +0800 | [diff] [blame] | 161 | </RelativeLayout> |