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/navbuttons_view" 43 android:layout_width="match_parent" 44 android:layout_height="wrap_content" 45 android:layout_gravity="bottom" > 46 47 <FrameLayout 48 android:id="@+id/start_contextual_buttons" 49 android:layout_width="wrap_content" 50 android:layout_height="match_parent" 51 android:paddingStart="@dimen/taskbar_contextual_button_padding" 52 android:paddingEnd="@dimen/taskbar_contextual_button_padding" 53 android:paddingTop="@dimen/taskbar_contextual_padding_top" 54 android:gravity="center_vertical" 55 android:layout_gravity="start"/> 56 57 <LinearLayout 58 android:id="@+id/end_nav_buttons" 59 android:layout_width="wrap_content" 60 android:layout_height="match_parent" 61 android:orientation="horizontal" 62 android:gravity="center_vertical" 63 android:layout_gravity="end"/> 64 65 <FrameLayout 66 android:id="@+id/end_contextual_buttons" 67 android:layout_width="wrap_content" 68 android:layout_height="match_parent" 69 android:paddingTop="@dimen/taskbar_contextual_padding_top" 70 android:gravity="center_vertical" 71 android:layout_gravity="end"/> 72 </FrameLayout> 73 74 <com.android.launcher3.taskbar.StashedHandleView 75 android:id="@+id/stashed_handle" 76 tools:comment1="The actual size and shape will be set as a ViewOutlineProvider at runtime" 77 android:layout_width="match_parent" 78 android:layout_height="wrap_content" 79 android:background="@color/taskbar_stashed_handle_dark_color" 80 android:clipToOutline="true" 81 android:layout_gravity="bottom"/> 82 83</com.android.launcher3.taskbar.TaskbarDragLayer>