1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2021 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:forceHasOverlappingRendering="false" 30 android:layout_gravity="bottom" 31 android:clipChildren="false" /> 32 33 <com.android.launcher3.taskbar.TaskbarScrimView 34 android:id="@+id/taskbar_scrim" 35 android:layout_width="match_parent" 36 android:layout_height="match_parent"/> 37 38 <com.android.launcher3.taskbar.navbutton.NearestTouchFrame 39 android:id="@+id/navbuttons_view" 40 android:layout_width="match_parent" 41 android:layout_height="wrap_content" 42 android:layout_gravity="bottom" > 43 44 <FrameLayout 45 android:id="@+id/start_contextual_buttons" 46 android:layout_width="wrap_content" 47 android:layout_height="match_parent" 48 android:gravity="center_vertical" 49 android:layout_gravity="start"/> 50 51 <LinearLayout 52 android:id="@+id/end_nav_buttons" 53 android:layout_width="wrap_content" 54 android:layout_height="match_parent" 55 android:orientation="horizontal" 56 android:gravity="center_vertical" 57 android:layout_gravity="end"/> 58 59 <FrameLayout 60 android:id="@+id/end_contextual_buttons" 61 android:layout_width="wrap_content" 62 android:layout_height="match_parent" 63 android:gravity="center_vertical" 64 android:layout_gravity="end"/> 65 </com.android.launcher3.taskbar.navbutton.NearestTouchFrame> 66 67 <com.android.launcher3.taskbar.StashedHandleView 68 android:id="@+id/stashed_handle" 69 tools:comment1="The actual size and shape will be set as a ViewOutlineProvider at runtime" 70 android:layout_width="match_parent" 71 android:layout_height="wrap_content" 72 android:background="@color/taskbar_stashed_handle_dark_color" 73 android:clipToOutline="true" 74 android:layout_gravity="bottom"/> 75 76</com.android.launcher3.taskbar.TaskbarDragLayer>