mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-20 03:08:19 +00:00
We need to use setSelected in order to add a ripple effect when a header is selected in tablet landscape mode, and to set the style through XML rather than programmatically the way it was done before in the method `setLargeScreenTheme`. Fix: 268558453 Test: Turn on LARGE_SCREEN_WIDGET_PICKER and verify that when selecting a header there's a ripple effect on that header Change-Id: I6cab920258a57118430d1e07416508ef36faa56d
27 lines
1.2 KiB
XML
27 lines
1.2 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- Copyright (C) 2023 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.
|
|
-->
|
|
<inset xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:insetTop="@dimen/widget_list_entry_spacing" >
|
|
<ripple
|
|
android:color="@color/accent_ripple_color"
|
|
android:paddingTop="@dimen/widget_list_header_view_vertical_padding"
|
|
android:paddingBottom="@dimen/widget_list_header_view_vertical_padding" >
|
|
<item android:id="@android:id/mask"
|
|
android:drawable="@drawable/bg_widgets_header_states_large_screen" />
|
|
<item android:drawable="@drawable/bg_widgets_header_states_large_screen" />
|
|
</ripple>
|
|
</inset>
|