1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2022 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--> 16<com.android.launcher3.taskbar.TaskbarDragLayer 17 xmlns:android="http://schemas.android.com/apk/res/android" 18 xmlns:tools="http://schemas.android.com/tools" 19 android:id="@+id/taskbar_container" 20 android:layout_width="wrap_content" 21 android:layout_height="wrap_content" 22 android:clipChildren="false"> 23 24 <com.android.launcher3.taskbar.TaskbarView 25 android:id="@+id/taskbar_view" 26 android:layout_width="match_parent" 27 android:layout_height="wrap_content" 28 android:gravity="center" 29 android:focusable="true" 30 android:importantForAccessibility="yes" 31 android:forceHasOverlappingRendering="false" 32 android:layout_gravity="bottom" 33 android:layout_marginBottom="@dimen/transient_taskbar_bottom_margin" 34 android:clipChildren="false" /> 35 36 <com.android.launcher3.taskbar.TaskbarScrimView 37 android:id="@+id/taskbar_scrim" 38 android:layout_width="match_parent" 39 android:layout_height="match_parent"/> 40 41 <com.android.launcher3.taskbar.bubbles.BubbleBarView 42 android:id="@+id/taskbar_bubbles" 43 android:layout_width="wrap_content" 44 android:layout_height="@dimen/bubblebar_size" 45 android:layout_gravity="bottom|end" 46 android:layout_marginEnd="@dimen/transient_taskbar_bottom_margin" 47 android:paddingEnd="@dimen/taskbar_icon_spacing" 48 android:paddingStart="@dimen/taskbar_icon_spacing" 49 android:visibility="gone" 50 android:gravity="center" 51 android:clipChildren="false" 52 android:elevation="@dimen/bubblebar_elevation" 53 /> 54 55 <FrameLayout 56 android:id="@+id/navbuttons_view" 57 android:layout_width="match_parent" 58 android:layout_height="wrap_content" 59 android:layout_gravity="bottom" > 60 61 <FrameLayout 62 android:id="@+id/start_contextual_buttons" 63 android:layout_width="wrap_content" 64 android:layout_height="match_parent" 65 android:paddingStart="@dimen/taskbar_contextual_button_padding" 66 android:paddingEnd="@dimen/taskbar_contextual_button_padding" 67 android:paddingTop="@dimen/taskbar_contextual_padding_top" 68 android:gravity="center_vertical" 69 android:layout_gravity="start"/> 70 71 <LinearLayout 72 android:id="@+id/end_nav_buttons" 73 android:layout_width="wrap_content" 74 android:layout_height="match_parent" 75 android:orientation="horizontal" 76 android:gravity="center_vertical" 77 android:layout_gravity="end"/> 78 79 <FrameLayout 80 android:id="@+id/end_contextual_buttons" 81 android:layout_width="wrap_content" 82 android:layout_height="match_parent" 83 android:paddingTop="@dimen/taskbar_contextual_padding_top" 84 android:gravity="center_vertical" 85 android:layout_gravity="end"/> 86 </FrameLayout> 87 88 <com.android.launcher3.taskbar.StashedHandleView 89 android:id="@+id/stashed_handle" 90 tools:comment1="The actual size and shape will be set as a ViewOutlineProvider at runtime" 91 android:layout_width="wrap_content" 92 android:layout_height="wrap_content" 93 android:background="@color/taskbar_stashed_handle_dark_color" 94 android:clipToOutline="true" 95 android:layout_gravity="bottom"/> 96 97 <com.android.launcher3.taskbar.StashedHandleView 98 android:id="@+id/stashed_bubble_handle" 99 tools:comment1="The actual size and shape will be set as a ViewOutlineProvider at runtime" 100 android:layout_width="wrap_content" 101 android:layout_height="wrap_content" 102 android:visibility="gone" 103 android:background="@color/taskbar_stashed_handle_dark_color" 104 android:clipToOutline="true" 105 android:layout_gravity="bottom"/> 106 107</com.android.launcher3.taskbar.TaskbarDragLayer>