material-components-android icon indicating copy to clipboard operation
material-components-android copied to clipboard

[TopAppBar] Color of ActionBar overflow menu background is incorrect

Open guillaume-tgl opened this issue 1 year ago • 2 comments
trafficstars

Description: The color of the ActionBar overflow menu background is wrong and is not consistent with the color of the overflow menu on regular top bars.

Expected behavior:

The following screenshots were taken from the Catalog demo app. Regular top bar overflow menu:

Action bar overflow menu:

Android API version: 34

Material Library version: Reproduced with the latest commit to date: a069c4c13ec8e160720b296554636037ce8bace4

Device: Pixel 4a

guillaume-tgl avatar Apr 09 '24 13:04 guillaume-tgl

Also observed in 1.11.0 and 1.12.0 but not in 1.10.0, for androidx.appcompat.widget.ActionMenuView. The overflow menu's background color does not adhere to the theme's 'colorPrimary'.

mjokost avatar Jul 17 '24 12:07 mjokost

workaround: put <item name="actionBarPopupTheme">@null</item> in your app's theme

manabu-nakamura avatar Sep 08 '24 05:09 manabu-nakamura