taskbar.xml 3.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!-- Copyright (C) 2021 The Android Open Source Project
  3. Licensed under the Apache License, Version 2.0 (the "License");
  4. you may not use this file except in compliance with the License.
  5. You may obtain a copy of the License at
  6. http://www.apache.org/licenses/LICENSE-2.0
  7. Unless required by applicable law or agreed to in writing, software
  8. distributed under the License is distributed on an "AS IS" BASIS,
  9. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10. See the License for the specific language governing permissions and
  11. limitations under the License.
  12. -->
  13. <com.android.launcher3.taskbar.TaskbarDragLayer
  14. xmlns:android="http://schemas.android.com/apk/res/android"
  15. xmlns:tools="http://schemas.android.com/tools"
  16. android:id="@+id/taskbar_container"
  17. android:layout_width="wrap_content"
  18. android:layout_height="wrap_content"
  19. android:clipChildren="false">
  20. <com.android.launcher3.taskbar.TaskbarView
  21. android:id="@+id/taskbar_view"
  22. android:layout_width="match_parent"
  23. android:layout_height="wrap_content"
  24. android:gravity="center"
  25. android:forceHasOverlappingRendering="false"
  26. android:layout_gravity="bottom"
  27. android:clipChildren="false" />
  28. <com.android.launcher3.taskbar.TaskbarScrimView
  29. android:id="@+id/taskbar_scrim"
  30. android:layout_width="match_parent"
  31. android:layout_height="match_parent"/>
  32. <FrameLayout
  33. android:id="@+id/navbuttons_view"
  34. android:layout_width="match_parent"
  35. android:layout_height="wrap_content"
  36. android:layout_gravity="bottom" >
  37. <FrameLayout
  38. android:id="@+id/start_contextual_buttons"
  39. android:layout_width="wrap_content"
  40. android:layout_height="match_parent"
  41. android:paddingLeft="@dimen/taskbar_nav_buttons_spacing"
  42. android:paddingRight="@dimen/taskbar_nav_buttons_spacing"
  43. android:paddingTop="@dimen/taskbar_contextual_padding_top"
  44. android:gravity="center_vertical"
  45. android:layout_gravity="start"/>
  46. <LinearLayout
  47. android:id="@+id/end_nav_buttons"
  48. android:layout_width="wrap_content"
  49. android:layout_height="match_parent"
  50. android:orientation="horizontal"
  51. android:paddingLeft="@dimen/taskbar_nav_buttons_spacing"
  52. android:paddingRight="@dimen/taskbar_nav_buttons_spacing"
  53. android:layout_marginEnd="@dimen/taskbar_contextual_button_margin"
  54. android:gravity="center_vertical"
  55. android:layout_gravity="end"/>
  56. <FrameLayout
  57. android:id="@+id/end_contextual_buttons"
  58. android:layout_width="wrap_content"
  59. android:layout_height="match_parent"
  60. android:paddingLeft="@dimen/taskbar_nav_buttons_spacing"
  61. android:paddingRight="@dimen/taskbar_nav_buttons_spacing"
  62. android:paddingTop="@dimen/taskbar_contextual_padding_top"
  63. android:gravity="center_vertical"
  64. android:layout_gravity="end"/>
  65. </FrameLayout>
  66. <com.android.launcher3.taskbar.StashedHandleView
  67. android:id="@+id/stashed_handle"
  68. tools:comment1="The actual size and shape will be set as a ViewOutlineProvider at runtime"
  69. android:layout_width="match_parent"
  70. android:layout_height="wrap_content"
  71. android:background="@color/taskbar_stashed_handle_dark_color"
  72. android:clipToOutline="true"
  73. android:layout_gravity="bottom"/>
  74. </com.android.launcher3.taskbar.TaskbarDragLayer>