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    xmlns:androidprv="http://schemas.android.com/apk/prv/res/android"
26    xmlns:launcher="http://schemas.android.com/apk/res-auto"
27    android:id="@+id/task"
28    android:layout_width="match_parent"
29    android:layout_height="match_parent"
30    android:clipChildren="false"
31    android:defaultFocusHighlightEnabled="false"
32    android:focusable="true"
33    launcher:focusBorderColor="?androidprv:attr/materialColorOutline"
34    launcher:hoverBorderColor="?androidprv:attr/materialColorPrimary">
35
36    <include layout="@layout/task_thumbnail"/>
37
38    <include layout="@layout/task_thumbnail"
39        android:id="@+id/bottomright_snapshot" />
40
41    <!-- Filtering affects only alpha instead of the visibility since visibility can be altered
42         separately through RecentsView#resetFromSplitSelectionState() -->
43    <ImageView
44        android:id="@+id/show_windows"
45        android:layout_height="@dimen/recents_filter_icon_size"
46        android:layout_width="@dimen/recents_filter_icon_size"
47        android:layout_gravity="start"
48        android:alpha="0"
49        android:tint="@color/recents_filter_icon"
50        android:importantForAccessibility="no"
51        android:src="@drawable/ic_select_windows" />
52
53    <!-- Filtering affects only alpha instead of the visibility since visibility can be altered
54         separately through RecentsView#resetFromSplitSelectionState() -->
55    <ImageView
56        android:id="@+id/show_windows_right"
57        android:layout_height="@dimen/recents_filter_icon_size"
58        android:layout_width="@dimen/recents_filter_icon_size"
59        android:layout_gravity="end"
60        android:alpha="0"
61        android:tint="@color/recents_filter_icon"
62        android:importantForAccessibility="no"
63        android:src="@drawable/ic_select_windows" />
64
65    <ViewStub
66        android:id="@+id/icon"
67        android:inflatedId="@id/icon"
68        android:layout_height="wrap_content"
69        android:layout_width="wrap_content" />
70
71    <ViewStub
72        android:id="@+id/bottomRight_icon"
73        android:inflatedId="@id/bottomRight_icon"
74        android:layout_height="wrap_content"
75        android:layout_width="wrap_content" />
76</com.android.quickstep.views.GroupedTaskView>