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