blob: 2d317a942f5a80e15db7bc2afe5f6e1756f4df2b [file] [log] [blame]
Chuck Liao8ec38e02020-02-26 20:59:32 +08001<?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-->
chihhangchuang450d3da2020-06-22 18:03:06 +080016<RelativeLayout
chihhangchuang22aa0cc2020-03-25 19:12:42 +080017 xmlns:android="http://schemas.android.com/apk/res/android"
Chuck Liao8ec38e02020-02-26 20:59:32 +080018 xmlns:app="http://schemas.android.com/apk/res-auto"
19 android:layout_width="match_parent"
chihhangchuang22aa0cc2020-03-25 19:12:42 +080020 android:layout_height="wrap_content"
chihhangchuang450d3da2020-06-22 18:03:06 +080021 android:clipChildren="false">
Chuck Liao8ec38e02020-02-26 20:59:32 +080022
chihhangchuang22aa0cc2020-03-25 19:12:42 +080023 <!-- Bottom Sheet -->
24 <androidx.coordinatorlayout.widget.CoordinatorLayout
25 android:layout_width="match_parent"
chihhangchuang450d3da2020-06-22 18:03:06 +080026 android:layout_height="wrap_content"
Pierre-Louise7e3a1e2021-04-10 13:51:29 +020027 android:layout_above="@id/action_tabs">
chihhangchuang22aa0cc2020-03-25 19:12:42 +080028 <!-- 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-Louise7e3a1e2021-04-10 13:51:29 +020033 android:layout_marginHorizontal="@dimen/bottom_sheet_margin"
chihhangchuang22aa0cc2020-03-25 19:12:42 +080034 android:background="@drawable/bottom_sheet_background"
35 android:theme="@style/WallpaperPicker.BottomPaneStyle"
chihhangchuangfd5326f2020-06-09 14:14:00 +080036 android:clickable="true"
Pierre-Louis2006ab72021-04-20 21:22:58 +020037 app:behavior_peekHeight="0dp"
chihhangchuang450d3da2020-06-22 18:03:06 +080038 app:layout_behavior="com.android.wallpaper.widget.BottomActionBar$QueueStateBottomSheetBehavior" />
chihhangchuang22aa0cc2020-03-25 19:12:42 +080039 </androidx.coordinatorlayout.widget.CoordinatorLayout>
Chuck Liao8ec38e02020-02-26 20:59:32 +080040
chihhangchuang22aa0cc2020-03-25 19:12:42 +080041 <!-- Bottom Tabs -->
42 <androidx.constraintlayout.widget.ConstraintLayout
chihhangchuang450d3da2020-06-22 18:03:06 +080043 android:id="@+id/action_tabs"
chihhangchuang22aa0cc2020-03-25 19:12:42 +080044 android:layout_width="match_parent"
Pierre-Louis7e859862021-04-28 15:25:29 +020045 android:layout_height="@dimen/bottom_actions_height"
46 android:paddingTop="@dimen/bottom_actions_top_padding"
47 android:paddingBottom="@dimen/bottom_actions_bottom_padding"
Pierre-Louise7e3a1e2021-04-10 13:51:29 +020048 android:background="?android:colorBackground"
chihhangchuang8126d322020-04-23 13:27:22 +080049 android:theme="@style/BottomActionItemStyle"
chihhangchuang450d3da2020-06-22 18:03:06 +080050 android:layout_alignParentBottom="true"
chihhangchuang8126d322020-04-23 13:27:22 +080051 android:layoutDirection="locale">
Chuck Liao8ec38e02020-02-26 20:59:32 +080052
chihhangchuang22aa0cc2020-03-25 19:12:42 +080053 <ImageView
chihhangchuang08abb582020-04-27 17:20:31 +080054 android:id="@+id/action_back"
Pierre-Louise7e3a1e2021-04-10 13:51:29 +020055 android:layout_width="@dimen/bottom_action_button_width"
56 android:layout_height="@dimen/bottom_action_button_height"
chihhangchuang22aa0cc2020-03-25 19:12:42 +080057 android:src="@drawable/ic_close_gm2_24px"
chihhangchuang50d61222020-04-24 17:06:00 +080058 android:contentDescription="@string/bottom_action_bar_back"
Pierre-Louise7e3a1e2021-04-10 13:51:29 +020059 android:visibility="gone"
chihhangchuang8126d322020-04-23 13:27:22 +080060 app:layout_constraintTop_toTopOf="parent"
Pierre-Louis7e859862021-04-28 15:25:29 +020061 app:layout_constraintBottom_toBottomOf="parent"
chihhangchuang22aa0cc2020-03-25 19:12:42 +080062 app:layout_constraintEnd_toStartOf="@id/action_rotation"
63 app:layout_constraintHorizontal_chainStyle="spread_inside"
64 app:layout_constraintStart_toStartOf="parent" />
Chuck Liao8ec38e02020-02-26 20:59:32 +080065
chihhangchuang22aa0cc2020-03-25 19:12:42 +080066 <ImageView
67 android:id="@+id/action_rotation"
Pierre-Louise7e3a1e2021-04-10 13:51:29 +020068 android:layout_width="@dimen/bottom_action_button_width"
69 android:layout_height="@dimen/bottom_action_button_height"
chihhangchuang50d61222020-04-24 17:06:00 +080070 android:src="@drawable/ic_slideshow_24dp"
chihhangchuang50d61222020-04-24 17:06:00 +080071 android:contentDescription="@string/bottom_action_bar_slideshow_wallpaper"
chihhangchuang22aa0cc2020-03-25 19:12:42 +080072 android:visibility="gone"
chihhangchuang8126d322020-04-23 13:27:22 +080073 app:layout_constraintTop_toTopOf="parent"
Pierre-Louis7e859862021-04-28 15:25:29 +020074 app:layout_constraintBottom_toBottomOf="parent"
Ching-Sung Li073812b2020-04-07 21:19:21 +080075 app:layout_constraintEnd_toStartOf="@id/action_delete"
chihhangchuang08abb582020-04-27 17:20:31 +080076 app:layout_constraintStart_toEndOf="@id/action_back" />
Chuck Liao8ec38e02020-02-26 20:59:32 +080077
chihhangchuang22aa0cc2020-03-25 19:12:42 +080078 <ImageView
Ching-Sung Li073812b2020-04-07 21:19:21 +080079 android:id="@+id/action_delete"
Pierre-Louise7e3a1e2021-04-10 13:51:29 +020080 android:layout_width="@dimen/bottom_action_button_width"
81 android:layout_height="@dimen/bottom_action_button_height"
chihhangchuang50d61222020-04-24 17:06:00 +080082 android:contentDescription="@string/delete_live_wallpaper"
Pierre-Louise7e3a1e2021-04-10 13:51:29 +020083 android:src="@drawable/ic_delete_24px"
Ching-Sung Li073812b2020-04-07 21:19:21 +080084 android:visibility="gone"
Pierre-Louis7e859862021-04-28 15:25:29 +020085 app:layout_constraintTop_toTopOf="parent"
86 app:layout_constraintBottom_toBottomOf="parent"
Ching-Sung Li073812b2020-04-07 21:19:21 +080087 app:layout_constraintEnd_toStartOf="@id/action_information"
Pierre-Louis7e859862021-04-28 15:25:29 +020088 app:layout_constraintStart_toEndOf="@id/action_rotation" />
Ching-Sung Li073812b2020-04-07 21:19:21 +080089
90 <ImageView
chihhangchuang22aa0cc2020-03-25 19:12:42 +080091 android:id="@+id/action_information"
Pierre-Louise7e3a1e2021-04-10 13:51:29 +020092 android:layout_width="@dimen/bottom_action_button_width"
93 android:layout_height="@dimen/bottom_action_button_height"
chihhangchuang22aa0cc2020-03-25 19:12:42 +080094 android:src="@drawable/ic_info_gm2_24px"
chihhangchuang50d61222020-04-24 17:06:00 +080095 android:contentDescription="@string/tab_info"
chihhangchuang22aa0cc2020-03-25 19:12:42 +080096 android:visibility="gone"
chihhangchuang8126d322020-04-23 13:27:22 +080097 app:layout_constraintTop_toTopOf="parent"
Pierre-Louis7e859862021-04-28 15:25:29 +020098 app:layout_constraintBottom_toBottomOf="parent"
chihhangchuang22aa0cc2020-03-25 19:12:42 +080099 app:layout_constraintEnd_toStartOf="@id/action_edit"
Ching-Sung Li073812b2020-04-07 21:19:21 +0800100 app:layout_constraintStart_toEndOf="@id/action_delete" />
Chuck Liao8ec38e02020-02-26 20:59:32 +0800101
chihhangchuang22aa0cc2020-03-25 19:12:42 +0800102 <ImageView
103 android:id="@+id/action_edit"
Pierre-Louise7e3a1e2021-04-10 13:51:29 +0200104 android:layout_width="@dimen/bottom_action_button_width"
105 android:layout_height="@dimen/bottom_action_button_height"
chihhangchuang3e064a12020-04-28 08:48:37 +0800106 android:src="@drawable/ic_pan_zoom_24dp"
chihhangchuang08abb582020-04-27 17:20:31 +0800107 android:contentDescription="@string/bottom_action_bar_edit"
108 android:visibility="gone"
109 app:layout_constraintTop_toTopOf="parent"
Pierre-Louis7e859862021-04-28 15:25:29 +0200110 app:layout_constraintBottom_toBottomOf="parent"
chihhangchuang08abb582020-04-27 17:20:31 +0800111 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-Louise7e3a1e2021-04-10 13:51:29 +0200116 android:layout_width="@dimen/bottom_action_button_width"
117 android:layout_height="@dimen/bottom_action_button_height"
chihhangchuang50d61222020-04-24 17:06:00 +0800118 android:src="@drawable/ic_tune_black_24dp"
chihhangchuang50d61222020-04-24 17:06:00 +0800119 android:contentDescription="@string/tab_customize"
120 android:visibility="gone"
chihhangchuang8126d322020-04-23 13:27:22 +0800121 app:layout_constraintTop_toTopOf="parent"
Pierre-Louis7e859862021-04-28 15:25:29 +0200122 app:layout_constraintBottom_toBottomOf="parent"
Ching-Sung Li073812b2020-04-07 21:19:21 +0800123 app:layout_constraintEnd_toStartOf="@id/action_download"
chihhangchuang08abb582020-04-27 17:20:31 +0800124 app:layout_constraintStart_toEndOf="@id/action_edit" />
chihhangchuang22aa0cc2020-03-25 19:12:42 +0800125
126 <ImageView
Ching-Sung Li073812b2020-04-07 21:19:21 +0800127 android:id="@+id/action_download"
Pierre-Louise7e3a1e2021-04-10 13:51:29 +0200128 android:layout_width="@dimen/bottom_action_button_width"
129 android:layout_height="@dimen/bottom_action_button_height"
Ching-Sung Li073812b2020-04-07 21:19:21 +0800130 android:src="@drawable/ic_file_download_gm2_24px"
chihhangchuang50d61222020-04-24 17:06:00 +0800131 android:contentDescription="@string/bottom_action_bar_download"
Ching-Sung Li073812b2020-04-07 21:19:21 +0800132 android:visibility="gone"
chihhangchuang8126d322020-04-23 13:27:22 +0800133 app:layout_constraintTop_toTopOf="parent"
Pierre-Louis7e859862021-04-28 15:25:29 +0200134 app:layout_constraintBottom_toBottomOf="parent"
Ching-Sung Li073812b2020-04-07 21:19:21 +0800135 app:layout_constraintEnd_toStartOf="@id/action_progress"
chihhangchuang08abb582020-04-27 17:20:31 +0800136 app:layout_constraintStart_toEndOf="@id/action_customize" />
Ching-Sung Li073812b2020-04-07 21:19:21 +0800137
138 <ProgressBar
139 android:id="@+id/action_progress"
Pierre-Louise7e3a1e2021-04-10 13:51:29 +0200140 android:layout_width="@dimen/bottom_action_button_width"
141 android:layout_height="@dimen/bottom_action_button_height"
Ching-Sung Li073812b2020-04-07 21:19:21 +0800142 android:visibility="gone"
chihhangchuang8126d322020-04-23 13:27:22 +0800143 app:layout_constraintTop_toTopOf="parent"
Pierre-Louis7e859862021-04-28 15:25:29 +0200144 app:layout_constraintBottom_toBottomOf="parent"
Ching-Sung Li073812b2020-04-07 21:19:21 +0800145 app:layout_constraintEnd_toStartOf="@id/action_apply"
146 app:layout_constraintStart_toEndOf="@id/action_download" />
147
148 <ImageView
chihhangchuang22aa0cc2020-03-25 19:12:42 +0800149 android:id="@+id/action_apply"
Pierre-Louise7e3a1e2021-04-10 13:51:29 +0200150 android:layout_width="@dimen/bottom_action_button_width"
151 android:layout_height="@dimen/bottom_action_button_height"
chihhangchuang22aa0cc2020-03-25 19:12:42 +0800152 android:src="@drawable/ic_done_gm2_24px"
chihhangchuang50d61222020-04-24 17:06:00 +0800153 android:contentDescription="@string/bottom_action_bar_apply"
chihhangchuang22aa0cc2020-03-25 19:12:42 +0800154 android:visibility="gone"
chihhangchuang8126d322020-04-23 13:27:22 +0800155 app:layout_constraintTop_toTopOf="parent"
Pierre-Louis7e859862021-04-28 15:25:29 +0200156 app:layout_constraintBottom_toBottomOf="parent"
chihhangchuang22aa0cc2020-03-25 19:12:42 +0800157 app:layout_constraintEnd_toEndOf="parent"
Ching-Sung Li073812b2020-04-07 21:19:21 +0800158 app:layout_constraintStart_toEndOf="@id/action_progress" />
chihhangchuang22aa0cc2020-03-25 19:12:42 +0800159
160 </androidx.constraintlayout.widget.ConstraintLayout>
chihhangchuang450d3da2020-06-22 18:03:06 +0800161</RelativeLayout>