Files
lawnchair/res/drawable/bg_widgets_header_two_pane_expanded_unfocused.xml
Matthew Mourgos 7820eab80c Add focus ring to widgets header
Change the widgets header drawable to be a selector with the
state_focused property in addition to the state_expanded property. The
focused items are drawn with a focus ring with no ripple, while the
unfocused items have a ripple.

Bug: 365120324
Test: focus traversal through left widget picker pane
Flag: EXEMPT bug fix
Change-Id: I710cb9e2d727a061e0c19df15526e8c832f6366b
2024-11-07 12:56:16 -08:00

25 lines
1.1 KiB
XML

<?xml version="1.0" encoding="utf-8"?><!--
~ Copyright (C) 2024 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.
-->
<layer-list xmlns:android="http://schemas.android.com/apk/res/android"
android:paddingBottom="@dimen/widget_list_header_view_vertical_padding"
android:paddingTop="@dimen/widget_list_header_view_vertical_padding">
<item>
<shape android:shape="rectangle">
<corners android:radius="@dimen/widget_list_top_bottom_corner_radius" />
<solid android:color="?attr/widgetPickerHeaderBackgroundColor" />
</shape>
</item>
</layer-list>