blob: 94d7d2bba0f64a59becb667720ed4dc0ec3f5400 [file] [log] [blame]
Tony Wickhamf26e90a2020-12-22 12:40:09 -06001<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2021 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-->
Sunny Goyal55845132021-05-21 14:41:30 -070016<com.android.launcher3.taskbar.TaskbarDragLayer
Tony Wickhamf26e90a2020-12-22 12:40:09 -060017 xmlns:android="http://schemas.android.com/apk/res/android"
Tony Wickham3fd22842021-06-01 16:54:07 -070018 xmlns:tools="http://schemas.android.com/tools"
Tony Wickhamf26e90a2020-12-22 12:40:09 -060019 android:id="@+id/taskbar_container"
20 android:layout_width="wrap_content"
Sunny Goyal57b22792021-05-25 14:35:01 -070021 android:layout_height="wrap_content"
22 android:clipChildren="false">
Tony Wickhamf26e90a2020-12-22 12:40:09 -060023
24 <com.android.launcher3.taskbar.TaskbarView
25 android:id="@+id/taskbar_view"
Sunny Goyald5500542021-05-20 20:18:47 +000026 android:layout_width="match_parent"
Tony Wickhamf26e90a2020-12-22 12:40:09 -060027 android:layout_height="wrap_content"
Sunny Goyald5500542021-05-20 20:18:47 +000028 android:gravity="center"
29 android:forceHasOverlappingRendering="false"
Sunny Goyal57b22792021-05-25 14:35:01 -070030 android:layout_gravity="bottom"
31 android:clipChildren="false" />
32
33 <FrameLayout
34 android:id="@+id/navbuttons_view"
35 android:layout_width="match_parent"
36 android:layout_height="wrap_content"
Sunny Goyald5500542021-05-20 20:18:47 +000037 android:layout_gravity="bottom" >
38
Vinit Nayak8dcbde82021-07-19 12:53:28 -070039 <FrameLayout
40 android:id="@+id/start_contextual_buttons"
41 android:layout_width="wrap_content"
42 android:layout_height="match_parent"
43 android:paddingLeft="@dimen/taskbar_nav_buttons_spacing"
44 android:paddingRight="@dimen/taskbar_nav_buttons_spacing"
Vinit Nayak74b25ca2021-10-12 21:41:13 -070045 android:paddingTop="@dimen/taskbar_contextual_padding_top"
Vinit Nayak8dcbde82021-07-19 12:53:28 -070046 android:gravity="center_vertical"
47 android:layout_gravity="start"/>
48
Sunny Goyald5500542021-05-20 20:18:47 +000049 <LinearLayout
Vinit Nayak8dcbde82021-07-19 12:53:28 -070050 android:id="@+id/end_nav_buttons"
Sunny Goyald5500542021-05-20 20:18:47 +000051 android:layout_width="wrap_content"
Sunny Goyal57b22792021-05-25 14:35:01 -070052 android:layout_height="match_parent"
Tony Wickham3fd22842021-06-01 16:54:07 -070053 android:orientation="horizontal"
Sunny Goyald5500542021-05-20 20:18:47 +000054 android:paddingLeft="@dimen/taskbar_nav_buttons_spacing"
55 android:paddingRight="@dimen/taskbar_nav_buttons_spacing"
Vinit Nayak7f4f4992021-09-07 14:39:45 -070056 android:layout_marginEnd="@dimen/taskbar_contextual_button_margin"
Sunny Goyal57b22792021-05-25 14:35:01 -070057 android:gravity="center_vertical"
Vinit Nayak8dcbde82021-07-19 12:53:28 -070058 android:layout_gravity="end"/>
Sunny Goyald5500542021-05-20 20:18:47 +000059
Sunny Goyal57b22792021-05-25 14:35:01 -070060 <FrameLayout
Vinit Nayak8dcbde82021-07-19 12:53:28 -070061 android:id="@+id/end_contextual_buttons"
Sunny Goyald5500542021-05-20 20:18:47 +000062 android:layout_width="wrap_content"
Sunny Goyal57b22792021-05-25 14:35:01 -070063 android:layout_height="match_parent"
Vinit Nayak91dca0f2021-05-25 19:26:48 -070064 android:paddingLeft="@dimen/taskbar_nav_buttons_spacing"
65 android:paddingRight="@dimen/taskbar_nav_buttons_spacing"
Vinit Nayak74b25ca2021-10-12 21:41:13 -070066 android:paddingTop="@dimen/taskbar_contextual_padding_top"
Sunny Goyal57b22792021-05-25 14:35:01 -070067 android:gravity="center_vertical"
68 android:layout_gravity="end"/>
69 </FrameLayout>
Vinit Nayak673faf52021-04-16 12:50:22 -070070
Tracy Zhou334cae42021-08-17 16:07:22 -070071 <com.android.launcher3.taskbar.StashedHandleView
Tony Wickham3fd22842021-06-01 16:54:07 -070072 android:id="@+id/stashed_handle"
73 tools:comment1="The actual size and shape will be set as a ViewOutlineProvider at runtime"
74 android:layout_width="match_parent"
75 android:layout_height="wrap_content"
Tracy Zhou334cae42021-08-17 16:07:22 -070076 android:background="@color/taskbar_stashed_handle_dark_color"
Tony Wickham3fd22842021-06-01 16:54:07 -070077 android:clipToOutline="true"
78 android:layout_gravity="bottom"/>
79
Sunny Goyal55845132021-05-21 14:41:30 -070080</com.android.launcher3.taskbar.TaskbarDragLayer>