blob: 76889bc2fb78e309e1e3db6cbed0afd028af2ab3 [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"
chihhangchuang22aa0cc2020-03-25 19:12:42 +080037 app:behavior_peekHeight="@dimen/preview_attribution_pane_collapsed_height"
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"
45 android:layout_height="@dimen/bottom_navbar_height"
chihhangchuang22aa0cc2020-03-25 19:12:42 +080046 android:clickable="true"
Pierre-Louise7e3a1e2021-04-10 13:51:29 +020047 android:background="?android:colorBackground"
chihhangchuang8126d322020-04-23 13:27:22 +080048 android:theme="@style/BottomActionItemStyle"
chihhangchuang450d3da2020-06-22 18:03:06 +080049 android:layout_alignParentBottom="true"
chihhangchuang8126d322020-04-23 13:27:22 +080050 android:layoutDirection="locale">
Chuck Liao8ec38e02020-02-26 20:59:32 +080051
chihhangchuang22aa0cc2020-03-25 19:12:42 +080052 <ImageView
chihhangchuang08abb582020-04-27 17:20:31 +080053 android:id="@+id/action_back"
Pierre-Louise7e3a1e2021-04-10 13:51:29 +020054 android:layout_width="@dimen/bottom_action_button_width"
55 android:layout_height="@dimen/bottom_action_button_height"
chihhangchuang22aa0cc2020-03-25 19:12:42 +080056 android:src="@drawable/ic_close_gm2_24px"
chihhangchuang50d61222020-04-24 17:06:00 +080057 android:contentDescription="@string/bottom_action_bar_back"
Pierre-Louise7e3a1e2021-04-10 13:51:29 +020058 android:visibility="gone"
chihhangchuang8126d322020-04-23 13:27:22 +080059 app:layout_constraintTop_toTopOf="parent"
chihhangchuang22aa0cc2020-03-25 19:12:42 +080060 app:layout_constraintEnd_toStartOf="@id/action_rotation"
61 app:layout_constraintHorizontal_chainStyle="spread_inside"
62 app:layout_constraintStart_toStartOf="parent" />
Chuck Liao8ec38e02020-02-26 20:59:32 +080063
chihhangchuang22aa0cc2020-03-25 19:12:42 +080064 <ImageView
65 android:id="@+id/action_rotation"
Pierre-Louise7e3a1e2021-04-10 13:51:29 +020066 android:layout_width="@dimen/bottom_action_button_width"
67 android:layout_height="@dimen/bottom_action_button_height"
chihhangchuang50d61222020-04-24 17:06:00 +080068 android:src="@drawable/ic_slideshow_24dp"
chihhangchuang50d61222020-04-24 17:06:00 +080069 android:contentDescription="@string/bottom_action_bar_slideshow_wallpaper"
chihhangchuang22aa0cc2020-03-25 19:12:42 +080070 android:visibility="gone"
chihhangchuang8126d322020-04-23 13:27:22 +080071 app:layout_constraintTop_toTopOf="parent"
Ching-Sung Li073812b2020-04-07 21:19:21 +080072 app:layout_constraintEnd_toStartOf="@id/action_delete"
chihhangchuang08abb582020-04-27 17:20:31 +080073 app:layout_constraintStart_toEndOf="@id/action_back" />
Chuck Liao8ec38e02020-02-26 20:59:32 +080074
chihhangchuang22aa0cc2020-03-25 19:12:42 +080075 <ImageView
Ching-Sung Li073812b2020-04-07 21:19:21 +080076 android:id="@+id/action_delete"
Pierre-Louise7e3a1e2021-04-10 13:51:29 +020077 android:layout_width="@dimen/bottom_action_button_width"
78 android:layout_height="@dimen/bottom_action_button_height"
chihhangchuang50d61222020-04-24 17:06:00 +080079 android:contentDescription="@string/delete_live_wallpaper"
Pierre-Louise7e3a1e2021-04-10 13:51:29 +020080 android:src="@drawable/ic_delete_24px"
Ching-Sung Li073812b2020-04-07 21:19:21 +080081 android:visibility="gone"
82 app:layout_constraintEnd_toStartOf="@id/action_information"
Pierre-Louise7e3a1e2021-04-10 13:51:29 +020083 app:layout_constraintStart_toEndOf="@id/action_rotation"
84 app:layout_constraintTop_toTopOf="parent" />
Ching-Sung Li073812b2020-04-07 21:19:21 +080085
86 <ImageView
chihhangchuang22aa0cc2020-03-25 19:12:42 +080087 android:id="@+id/action_information"
Pierre-Louise7e3a1e2021-04-10 13:51:29 +020088 android:layout_width="@dimen/bottom_action_button_width"
89 android:layout_height="@dimen/bottom_action_button_height"
chihhangchuang22aa0cc2020-03-25 19:12:42 +080090 android:src="@drawable/ic_info_gm2_24px"
chihhangchuang50d61222020-04-24 17:06:00 +080091 android:contentDescription="@string/tab_info"
chihhangchuang22aa0cc2020-03-25 19:12:42 +080092 android:visibility="gone"
chihhangchuang8126d322020-04-23 13:27:22 +080093 app:layout_constraintTop_toTopOf="parent"
chihhangchuang22aa0cc2020-03-25 19:12:42 +080094 app:layout_constraintEnd_toStartOf="@id/action_edit"
Ching-Sung Li073812b2020-04-07 21:19:21 +080095 app:layout_constraintStart_toEndOf="@id/action_delete" />
Chuck Liao8ec38e02020-02-26 20:59:32 +080096
chihhangchuang22aa0cc2020-03-25 19:12:42 +080097 <ImageView
98 android:id="@+id/action_edit"
Pierre-Louise7e3a1e2021-04-10 13:51:29 +020099 android:layout_width="@dimen/bottom_action_button_width"
100 android:layout_height="@dimen/bottom_action_button_height"
chihhangchuang3e064a12020-04-28 08:48:37 +0800101 android:src="@drawable/ic_pan_zoom_24dp"
chihhangchuang08abb582020-04-27 17:20:31 +0800102 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-Louise7e3a1e2021-04-10 13:51:29 +0200110 android:layout_width="@dimen/bottom_action_button_width"
111 android:layout_height="@dimen/bottom_action_button_height"
chihhangchuang50d61222020-04-24 17:06:00 +0800112 android:src="@drawable/ic_tune_black_24dp"
chihhangchuang50d61222020-04-24 17:06:00 +0800113 android:contentDescription="@string/tab_customize"
114 android:visibility="gone"
chihhangchuang8126d322020-04-23 13:27:22 +0800115 app:layout_constraintTop_toTopOf="parent"
Ching-Sung Li073812b2020-04-07 21:19:21 +0800116 app:layout_constraintEnd_toStartOf="@id/action_download"
chihhangchuang08abb582020-04-27 17:20:31 +0800117 app:layout_constraintStart_toEndOf="@id/action_edit" />
chihhangchuang22aa0cc2020-03-25 19:12:42 +0800118
119 <ImageView
Ching-Sung Li073812b2020-04-07 21:19:21 +0800120 android:id="@+id/action_download"
Pierre-Louise7e3a1e2021-04-10 13:51:29 +0200121 android:layout_width="@dimen/bottom_action_button_width"
122 android:layout_height="@dimen/bottom_action_button_height"
Ching-Sung Li073812b2020-04-07 21:19:21 +0800123 android:src="@drawable/ic_file_download_gm2_24px"
chihhangchuang50d61222020-04-24 17:06:00 +0800124 android:contentDescription="@string/bottom_action_bar_download"
Ching-Sung Li073812b2020-04-07 21:19:21 +0800125 android:visibility="gone"
chihhangchuang8126d322020-04-23 13:27:22 +0800126 app:layout_constraintTop_toTopOf="parent"
Ching-Sung Li073812b2020-04-07 21:19:21 +0800127 app:layout_constraintEnd_toStartOf="@id/action_progress"
chihhangchuang08abb582020-04-27 17:20:31 +0800128 app:layout_constraintStart_toEndOf="@id/action_customize" />
Ching-Sung Li073812b2020-04-07 21:19:21 +0800129
130 <ProgressBar
131 android:id="@+id/action_progress"
Pierre-Louise7e3a1e2021-04-10 13:51:29 +0200132 android:layout_width="@dimen/bottom_action_button_width"
133 android:layout_height="@dimen/bottom_action_button_height"
Ching-Sung Li073812b2020-04-07 21:19:21 +0800134 android:visibility="gone"
chihhangchuang8126d322020-04-23 13:27:22 +0800135 app:layout_constraintTop_toTopOf="parent"
Ching-Sung Li073812b2020-04-07 21:19:21 +0800136 app:layout_constraintEnd_toStartOf="@id/action_apply"
137 app:layout_constraintStart_toEndOf="@id/action_download" />
138
139 <ImageView
chihhangchuang22aa0cc2020-03-25 19:12:42 +0800140 android:id="@+id/action_apply"
Pierre-Louise7e3a1e2021-04-10 13:51:29 +0200141 android:layout_width="@dimen/bottom_action_button_width"
142 android:layout_height="@dimen/bottom_action_button_height"
chihhangchuang22aa0cc2020-03-25 19:12:42 +0800143 android:src="@drawable/ic_done_gm2_24px"
chihhangchuang50d61222020-04-24 17:06:00 +0800144 android:contentDescription="@string/bottom_action_bar_apply"
chihhangchuang22aa0cc2020-03-25 19:12:42 +0800145 android:visibility="gone"
chihhangchuang8126d322020-04-23 13:27:22 +0800146 app:layout_constraintTop_toTopOf="parent"
chihhangchuang22aa0cc2020-03-25 19:12:42 +0800147 app:layout_constraintEnd_toEndOf="parent"
Ching-Sung Li073812b2020-04-07 21:19:21 +0800148 app:layout_constraintStart_toEndOf="@id/action_progress" />
chihhangchuang22aa0cc2020-03-25 19:12:42 +0800149
150 </androidx.constraintlayout.widget.ConstraintLayout>
chihhangchuang450d3da2020-06-22 18:03:06 +0800151</RelativeLayout>