Files
lawnchair/quickstep/res/values/attrs.xml
Daniel Andersson 04066346c2 desktop-exploded-view: Adding keyboard navigation to DesktopTaskView
This CL makes TaskContentView focusable and adds a focus border to it
that is shown when it has focus. There are some caveats currently:

* Recents has a bug where it starts to eat TAB inputs (b/403292849).
  This means that the tab navigation is currently quite shaky and
  often just works the first time entering recents.
* Activating a window (with enter) is currently disabled because of
  another existing bug (b/413378320).

Flag: com.android.launcher3.enable_desktop_exploded_view
Test: Manual
Bug: 353949138

Change-Id: I1c9c7e437f2e131c4ead1d750952ee9ff77c17f4
2025-05-28 13:54:59 -07:00

75 lines
2.9 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2021 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<resources>
<declare-styleable name="AllSetLinkSpan">
<attr name="android:textSize"/>
<attr name="android:fontFamily"/>
</declare-styleable>
<!--
TaskView specific attributes. These attributes are used to customize a TaskView view in
XML files.
-->
<declare-styleable name="TaskView">
<!-- Border color for a keyboard quick switch task views -->
<attr name="focusBorderColor" format="color" />
<attr name="hoverBorderColor" format="color" />
<attr name="focusBorderRadius" format="dimension" />
</declare-styleable>
<declare-styleable name="TaskContentView">
<!--
Border color for a focused TaskContentView. This is used when the TaskContentView is
used for a desktop task.
-->
<attr name="focusBorderColor" format="color" />
</declare-styleable>
<declare-styleable name="ClearAllButton">
<!-- focus border color for overview clear all button views -->
<attr name="focusBorderColor" />
</declare-styleable>
<declare-styleable name="AddDesktopButton">
<!-- focus border color for overview add desktop button views -->
<attr name="focusBorderColor" />
</declare-styleable>
<declare-styleable name="IconAppChip">
<!-- focus border color for overview app chip -->
<attr name="focusBorderColor" />
</declare-styleable>
<!--
Gesture nav edu specific attributes. These attributes are used to customize Gesture nav edu
view lottie animation colors in XML files.
-->
<declare-styleable name="RootSandboxLayout">
<attr name="tutorialSubtitle" format="color" />
<attr name="surfaceContainer" format="color" />
<attr name="onSurfaceHome" format="color" />
<attr name="surfaceHome" format="color" />
<attr name="secondaryHome" format="color" />
<attr name="onSurfaceBack" format="color" />
<attr name="surfaceBack" format="color" />
<attr name="secondaryBack" format="color" />
<attr name="onSurfaceOverview" format="color" />
<attr name="surfaceOverview" format="color" />
<attr name="secondaryOverview" format="color" />
</declare-styleable>
</resources>