task_grouped.xml 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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. <!-- NOTE! don't add dimensions for margins / paddings / sizes that change per orientation to this
  14. file, they need to be loaded at runtime. -->
  15. <!-- DOUBLE NOTE! Don't deviate IDs from task.xml since this layout acts as a "subclass" (read as
  16. "bad code"). How can we use the view pool in RecentsView to use task.xml layout with using
  17. GroupedTaskView.java class? Is that possible (while still keeping code in separate class) ? -->
  18. <com.android.quickstep.views.GroupedTaskView
  19. xmlns:android="http://schemas.android.com/apk/res/android"
  20. android:layout_width="match_parent"
  21. android:layout_height="match_parent"
  22. android:clipChildren="false"
  23. android:defaultFocusHighlightEnabled="false"
  24. android:focusable="true">
  25. <com.android.quickstep.views.TaskThumbnailView
  26. android:id="@+id/snapshot"
  27. android:layout_width="match_parent"
  28. android:layout_height="match_parent"/>
  29. <com.android.quickstep.views.TaskThumbnailView
  30. android:id="@+id/bottomright_snapshot"
  31. android:layout_width="match_parent"
  32. android:layout_height="match_parent"/>
  33. <com.android.quickstep.views.IconView
  34. android:id="@+id/icon"
  35. android:layout_width="@dimen/task_thumbnail_icon_size"
  36. android:layout_height="@dimen/task_thumbnail_icon_size"
  37. android:focusable="false"
  38. android:importantForAccessibility="no"/>
  39. <com.android.quickstep.views.IconView
  40. android:id="@+id/bottomRight_icon"
  41. android:layout_width="@dimen/task_thumbnail_icon_size"
  42. android:layout_height="@dimen/task_thumbnail_icon_size"
  43. android:focusable="false"
  44. android:importantForAccessibility="no"/>
  45. </com.android.quickstep.views.GroupedTaskView>