overview_actions_container.xml 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. Copyright (C) 2021 The Android Open Source Project
  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. http://www.apache.org/licenses/LICENSE-2.0
  8. Unless required by applicable law or agreed to in writing, software
  9. distributed under the License is distributed on an "AS IS" BASIS,
  10. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  11. See the License for the specific language governing permissions and
  12. limitations under the License.
  13. -->
  14. <com.android.quickstep.views.GoOverviewActionsView
  15. xmlns:android="http://schemas.android.com/apk/res/android"
  16. android:layout_width="match_parent"
  17. android:layout_height="wrap_content"
  18. android:layout_gravity="center_horizontal|bottom">
  19. <LinearLayout
  20. android:id="@+id/action_buttons"
  21. android:layout_width="match_parent"
  22. android:layout_height="@dimen/overview_actions_height"
  23. android:layout_gravity="top|center_horizontal"
  24. android:orientation="horizontal">
  25. <Space
  26. android:layout_width="0dp"
  27. android:layout_height="1dp"
  28. android:layout_weight="1" />
  29. <LinearLayout
  30. android:id="@+id/layout_translate"
  31. style="@style/GoOverviewActionButtonContainer">
  32. <ImageButton
  33. android:id="@+id/action_translate"
  34. style="@style/GoOverviewActionButton"
  35. android:src="@drawable/ic_translate"
  36. android:contentDescription="@string/action_translate" />
  37. <TextView
  38. style="@style/GoOverviewActionButtonCaption"
  39. android:text="@string/action_translate" />
  40. </LinearLayout>
  41. <Space
  42. android:id="@+id/spacer_translate"
  43. android:layout_width="@dimen/go_overview_button_container_margin"
  44. android:layout_height="1dp" />
  45. <LinearLayout
  46. android:id="@+id/layout_listen"
  47. style="@style/GoOverviewActionButtonContainer">
  48. <ImageButton
  49. android:id="@+id/action_listen"
  50. style="@style/GoOverviewActionButton"
  51. android:src="@drawable/ic_listen"
  52. android:contentDescription="@string/action_listen"
  53. android:background="@drawable/round_rect_button" />
  54. <TextView
  55. style="@style/GoOverviewActionButtonCaption"
  56. android:text="@string/action_listen" />
  57. </LinearLayout>
  58. <Space
  59. android:id="@+id/spacer_listen"
  60. android:layout_width="@dimen/go_overview_button_container_margin"
  61. android:layout_height="1dp" />
  62. <LinearLayout
  63. android:id="@+id/layout_screenshot"
  64. style="@style/GoOverviewActionButtonContainer">
  65. <ImageButton
  66. android:id="@+id/action_screenshot"
  67. style="@style/GoOverviewActionButton"
  68. android:src="@drawable/ic_screenshot"
  69. android:contentDescription="@string/action_screenshot"
  70. android:background="@drawable/round_rect_button" />
  71. <TextView
  72. style="@style/GoOverviewActionButtonCaption"
  73. android:text="@string/action_screenshot" />
  74. </LinearLayout>
  75. <Space
  76. android:layout_width="0dp"
  77. android:layout_height="1dp"
  78. android:layout_weight="1" />
  79. <!-- Will be enabled in a future version. -->
  80. <LinearLayout
  81. style="@style/GoOverviewActionButtonContainer"
  82. android:visibility="gone" >
  83. <ImageButton
  84. android:id="@+id/action_search"
  85. style="@style/GoOverviewActionButton"
  86. android:src="@drawable/ic_search"
  87. android:contentDescription="@string/action_search"
  88. android:background="@drawable/round_rect_button" />
  89. <TextView
  90. style="@style/GoOverviewActionButtonCaption"
  91. android:text="@string/action_search" />
  92. </LinearLayout>
  93. <!-- Unused. Included only for compatibility with parent class. -->
  94. <Button
  95. android:id="@+id/action_split"
  96. style="@style/GoOverviewActionButton"
  97. android:layout_width="wrap_content"
  98. android:layout_height="wrap_content"
  99. android:drawableStart="@drawable/ic_split_screen"
  100. android:text="@string/action_split"
  101. android:theme="@style/ThemeControlHighlightWorkspaceColor"
  102. android:visibility="gone" />
  103. <Space
  104. android:id="@+id/action_split_space"
  105. android:layout_width="0dp"
  106. android:layout_height="1dp"
  107. android:layout_weight="1"
  108. android:visibility="gone" />
  109. </LinearLayout>
  110. </com.android.quickstep.views.GoOverviewActionsView>