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_with_pointer" 45 android:layout_gravity="bottom|end" 46 android:layout_marginHorizontal="@dimen/transient_taskbar_bottom_margin" 47 android:paddingTop="@dimen/bubblebar_pointer_visible_size" 48 android:visibility="gone" 49 android:gravity="center" 50 android:clipChildren="false" 51 android:elevation="@dimen/bubblebar_elevation" 52 /> 53 54 <com.android.launcher3.taskbar.navbutton.NearestTouchFrame 55 android:id="@+id/navbuttons_view" 56 android:layout_width="match_parent" 57 android:layout_height="wrap_content" 58 android:layout_gravity="bottom" > 59 60 <FrameLayout 61 android:id="@+id/start_contextual_buttons" 62 android:layout_width="wrap_content" 63 android:layout_height="match_parent" 64 android:paddingStart="@dimen/taskbar_contextual_button_padding" 65 android:paddingEnd="@dimen/taskbar_contextual_button_padding" 66 android:paddingTop="@dimen/taskbar_contextual_padding_top" 67 android:gravity="center_vertical" 68 android:layout_gravity="start"/> 69 70 <LinearLayout 71 android:id="@+id/end_nav_buttons" 72 android:layout_width="wrap_content" 73 android:layout_height="match_parent" 74 android:orientation="horizontal" 75 android:gravity="center_vertical" 76 android:layout_gravity="end"/> 77 78 <FrameLayout 79 android:id="@+id/end_contextual_buttons" 80 android:layout_width="wrap_content" 81 android:layout_height="match_parent" 82 android:paddingTop="@dimen/taskbar_contextual_padding_top" 83 android:gravity="center_vertical" 84 android:layout_gravity="end"/> 85 </com.android.launcher3.taskbar.navbutton.NearestTouchFrame> 86 87 <com.android.launcher3.taskbar.StashedHandleView 88 android:id="@+id/stashed_handle" 89 tools:comment1="The actual size and shape will be set as a ViewOutlineProvider at runtime" 90 android:layout_width="wrap_content" 91 android:layout_height="wrap_content" 92 android:background="@color/taskbar_stashed_handle_dark_color" 93 android:clipToOutline="true" 94 android:layout_gravity="bottom"/> 95 96 <com.android.launcher3.taskbar.StashedHandleView 97 android:id="@+id/stashed_bubble_handle" 98 tools:comment1="The actual size and shape will be set as a ViewOutlineProvider at runtime" 99 android:layout_width="wrap_content" 100 android:layout_height="wrap_content" 101 android:visibility="gone" 102 android:background="@color/taskbar_stashed_handle_dark_color" 103 android:clipToOutline="true" 104 android:layout_gravity="bottom"/> 105 106</com.android.launcher3.taskbar.TaskbarDragLayer>