mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-27 23:36:47 +00:00
Add background to app chip menu so elevation shadow renders.
Fix: 312146447 Flag: ACONFIG com.android.launcher3.enable_overview_icon_menu TEAMFOOD Test: OverviewImageTest. Change-Id: I43113acd0eaafac2955cd4bbebafc103bdba6d98
This commit is contained in:
@@ -23,6 +23,7 @@
|
||||
android:focusable="false"
|
||||
android:importantForAccessibility="no"
|
||||
android:autoMirrored="true"
|
||||
android:background="@drawable/icon_menu_elevation_background"
|
||||
android:elevation="@dimen/task_thumbnail_icon_menu_elevation" >
|
||||
|
||||
<ImageView
|
||||
|
||||
@@ -88,7 +88,7 @@
|
||||
<dimen name="task_thumbnail_icon_menu_drawable_max_size">32dp</dimen>
|
||||
<!-- The size of the icon menu's icon touch target -->
|
||||
<dimen name="task_thumbnail_icon_menu_drawable_touch_size">44dp</dimen>
|
||||
<dimen name="task_thumbnail_icon_menu_elevation">14dp</dimen>
|
||||
<dimen name="task_thumbnail_icon_menu_elevation">4dp</dimen>
|
||||
|
||||
<dimen name="task_icon_cache_default_icon_size">72dp</dimen>
|
||||
<item name="overview_modal_max_scale" format="float" type="dimen">1.1</item>
|
||||
|
||||
22
res/drawable/icon_menu_elevation_background.xml
Normal file
22
res/drawable/icon_menu_elevation_background.xml
Normal file
@@ -0,0 +1,22 @@
|
||||
<?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.
|
||||
-->
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:androidprv="http://schemas.android.com/apk/prv/res/android"
|
||||
android:shape="rectangle">
|
||||
<solid android:color="?androidprv:attr/materialColorSurfaceBright" />
|
||||
<corners android:radius="@dimen/task_thumbnail_icon_menu_corner_radius" />
|
||||
</shape>
|
||||
Reference in New Issue
Block a user