1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2023 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<com.android.launcher3.taskbar.KeyboardQuickSwitchTaskView 17 xmlns:android="http://schemas.android.com/apk/res/android" 18 xmlns:androidprv="http://schemas.android.com/apk/prv/res/android" 19 xmlns:app="http://schemas.android.com/apk/res-auto" 20 xmlns:launcher="http://schemas.android.com/apk/res-auto" 21 android:layout_width="wrap_content" 22 android:layout_height="wrap_content" 23 android:importantForAccessibility="yes" 24 launcher:focusBorderColor="@color/materialColorSecondary"> 25 26 <androidx.constraintlayout.widget.ConstraintLayout 27 android:id="@+id/content" 28 android:layout_width="@dimen/keyboard_quick_switch_taskview_width" 29 android:layout_height="@dimen/keyboard_quick_switch_taskview_height" 30 android:background="@drawable/keyboard_quick_switch_task_view_background" 31 android:clipToOutline="true" 32 33 app:layout_constraintTop_toTopOf="parent" 34 app:layout_constraintBottom_toBottomOf="parent" 35 app:layout_constraintStart_toStartOf="parent" 36 app:layout_constraintEnd_toEndOf="parent"> 37 38 <include 39 layout="@layout/keyboard_quick_switch_taskview_thumbnail" 40 android:id="@+id/thumbnail_1" 41 android:layout_width="match_parent" 42 android:layout_height="0dp" 43 44 app:layout_constraintTop_toTopOf="parent" 45 app:layout_constraintBottom_toTopOf="@id/thumbnail_2" 46 app:layout_constraintStart_toStartOf="parent" 47 app:layout_constraintEnd_toEndOf="parent"/> 48 49 <include 50 layout="@layout/keyboard_quick_switch_taskview_thumbnail" 51 android:id="@+id/thumbnail_2" 52 android:layout_width="match_parent" 53 android:layout_height="0dp" 54 android:visibility="gone" 55 android:layout_marginTop="@dimen/keyboard_quick_switch_view_small_spacing" 56 57 app:layout_constraintTop_toBottomOf="@id/thumbnail_1" 58 app:layout_constraintBottom_toBottomOf="parent" 59 app:layout_constraintStart_toStartOf="parent" 60 app:layout_constraintEnd_toEndOf="parent"/> 61 62 <ImageView 63 android:id="@+id/icon_1" 64 android:layout_width="@dimen/keyboard_quick_switch_taskview_icon_size" 65 android:layout_height="@dimen/keyboard_quick_switch_taskview_icon_size" 66 android:importantForAccessibility="no" 67 android:scaleType="centerCrop" 68 69 app:layout_constraintTop_toTopOf="@id/thumbnail_1" 70 app:layout_constraintBottom_toBottomOf="@id/thumbnail_1" 71 app:layout_constraintStart_toStartOf="@id/thumbnail_1" 72 app:layout_constraintEnd_toEndOf="@id/thumbnail_1"/> 73 74 <ImageView 75 android:id="@+id/icon_2" 76 android:layout_width="@dimen/keyboard_quick_switch_taskview_icon_size" 77 android:layout_height="@dimen/keyboard_quick_switch_taskview_icon_size" 78 android:importantForAccessibility="no" 79 android:visibility="gone" 80 android:scaleType="centerCrop" 81 82 app:layout_constraintTop_toTopOf="@id/thumbnail_2" 83 app:layout_constraintBottom_toBottomOf="@id/thumbnail_2" 84 app:layout_constraintStart_toStartOf="@id/thumbnail_2" 85 app:layout_constraintEnd_toEndOf="@id/thumbnail_2"/> 86 87 </androidx.constraintlayout.widget.ConstraintLayout> 88 89</com.android.launcher3.taskbar.KeyboardQuickSwitchTaskView> 90