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