material-components-android
material-components-android copied to clipboard
[TopAppBar] Color of ActionBar overflow menu background is incorrect
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
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'.
workaround: put <item name="actionBarPopupTheme">@null</item> in your app's theme