1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2024 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 <!-- TODO(b/349885828) : to be removed in future cl. --> 25 <com.android.launcher3.taskbar.TaskbarView 26 android:id="@+id/taskbar_view" 27 android:layout_width="match_parent" 28 android:layout_height="wrap_content" 29 android:gravity="center" 30 android:focusable="true" 31 android:importantForAccessibility="yes" 32 android:forceHasOverlappingRendering="false" 33 android:layout_gravity="bottom" 34 android:layout_marginBottom="@dimen/transient_taskbar_bottom_margin" 35 android:clipChildren="false" /> 36 37 <com.android.launcher3.taskbar.customization.CustomizableTaskbarView 38 android:id="@+id/customizable_taskbar_view" 39 android:layout_width="match_parent" 40 android:layout_height="wrap_content" 41 android:gravity="center" 42 android:focusable="true" 43 android:importantForAccessibility="yes" 44 android:forceHasOverlappingRendering="false" 45 android:layout_gravity="bottom" 46 android:layout_marginBottom="@dimen/transient_taskbar_bottom_margin" 47 android:clipChildren="false" /> 48 49 <com.android.launcher3.taskbar.TaskbarScrimView 50 android:id="@+id/taskbar_scrim" 51 android:layout_width="match_parent" 52 android:layout_height="match_parent"/> 53 54 <FrameLayout 55 android:id="@+id/taskbar_bubbles_container" 56 android:layout_width="match_parent" 57 android:layout_height="match_parent" 58 android:clipChildren="false"> 59 60 <com.android.launcher3.taskbar.bubbles.BubbleBarView 61 android:id="@+id/taskbar_bubbles" 62 android:layout_width="wrap_content" 63 android:layout_height="@dimen/bubblebar_size_with_pointer" 64 android:layout_gravity="bottom|end" 65 android:layout_marginHorizontal="@dimen/transient_taskbar_bottom_margin" 66 android:paddingTop="@dimen/bubblebar_pointer_visible_size" 67 android:paddingEnd="@dimen/taskbar_icon_spacing" 68 android:paddingStart="@dimen/taskbar_icon_spacing" 69 android:visibility="gone" 70 android:gravity="center" 71 android:clipChildren="false" 72 android:elevation="@dimen/bubblebar_elevation" /> 73 </FrameLayout> 74 75 <com.android.launcher3.taskbar.navbutton.NearestTouchFrame 76 android:id="@+id/navbuttons_view" 77 android:layout_width="match_parent" 78 android:layout_height="wrap_content" 79 android:layout_gravity="bottom" > 80 81 <FrameLayout 82 android:id="@+id/start_contextual_buttons" 83 android:layout_width="wrap_content" 84 android:layout_height="match_parent" 85 android:paddingStart="@dimen/taskbar_contextual_button_padding" 86 android:paddingEnd="@dimen/taskbar_contextual_button_padding" 87 android:paddingTop="@dimen/taskbar_contextual_padding_top" 88 android:gravity="center_vertical" 89 android:layout_gravity="start"/> 90 91 <LinearLayout 92 android:id="@+id/end_nav_buttons" 93 android:layout_width="wrap_content" 94 android:layout_height="match_parent" 95 android:orientation="horizontal" 96 android:gravity="center_vertical" 97 android:layout_gravity="end"/> 98 99 <FrameLayout 100 android:id="@+id/end_contextual_buttons" 101 android:layout_width="wrap_content" 102 android:layout_height="match_parent" 103 android:paddingTop="@dimen/taskbar_contextual_padding_top" 104 android:gravity="center_vertical" 105 android:layout_gravity="end"/> 106 </com.android.launcher3.taskbar.navbutton.NearestTouchFrame> 107 108 <com.android.launcher3.taskbar.StashedHandleView 109 android:id="@+id/stashed_handle" 110 tools:comment1="The actual size and shape will be set as a ViewOutlineProvider at runtime" 111 android:layout_width="wrap_content" 112 android:layout_height="wrap_content" 113 android:background="@color/taskbar_stashed_handle_dark_color" 114 android:clipToOutline="true" 115 android:layout_gravity="bottom"/> 116 117 <com.android.launcher3.taskbar.StashedHandleView 118 android:id="@+id/stashed_bubble_handle" 119 tools:comment1="The actual size and shape will be set as a ViewOutlineProvider at runtime" 120 android:layout_width="wrap_content" 121 android:layout_height="wrap_content" 122 android:visibility="gone" 123 android:background="@color/taskbar_stashed_handle_dark_color" 124 android:clipToOutline="true" 125 android:layout_gravity="bottom"/> 126 127</com.android.launcher3.taskbar.TaskbarDragLayer>