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 <FrameLayout 39 android:id="@+id/taskbar_bubbles_container" 40 android:layout_width="match_parent" 41 android:layout_height="match_parent" 42 android:clipChildren="false"> 43 44 <com.android.launcher3.taskbar.bubbles.BubbleBarView 45 android:id="@+id/taskbar_bubbles" 46 android:layout_width="wrap_content" 47 android:layout_height="@dimen/bubblebar_size_with_pointer" 48 android:layout_marginHorizontal="@dimen/transient_taskbar_bottom_margin" 49 android:paddingTop="@dimen/bubblebar_pointer_visible_size" 50 android:visibility="gone" 51 android:gravity="center" 52 android:layout_gravity="bottom" 53 android:clipChildren="false" 54 android:elevation="@dimen/bubblebar_elevation" /> 55 </FrameLayout> 56 57 <com.android.launcher3.taskbar.navbutton.NearestTouchFrame 58 android:id="@+id/navbuttons_view" 59 android:layout_width="match_parent" 60 android:layout_height="wrap_content" 61 android:layout_gravity="bottom" > 62 63 <FrameLayout 64 android:id="@+id/start_contextual_buttons" 65 android:layout_width="wrap_content" 66 android:layout_height="match_parent" 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:gravity="center_vertical" 83 android:layout_gravity="end"/> 84 </com.android.launcher3.taskbar.navbutton.NearestTouchFrame> 85 86 <com.android.launcher3.taskbar.StashedHandleView 87 android:id="@+id/stashed_handle" 88 tools:comment1="The actual size and shape will be set as a ViewOutlineProvider at runtime" 89 android:layout_width="match_parent" 90 android:layout_height="wrap_content" 91 android:background="@color/taskbar_stashed_handle_dark_color" 92 android:clipToOutline="true" 93 android:layout_gravity="bottom"/> 94 95</com.android.launcher3.taskbar.TaskbarDragLayer>