Skip to content

[PopupMenu] PopupMenu styles only work with appcompat version #4332

Closed
@UweTrottmann

Description

@UweTrottmann

Description: The set PopupMenu styles (via the popupMenuStyle attribute) only work with androidx.appcompat.widget.PopupMenu. But the menu docs link to/suggest using android.widget.PopupMenu.

Expected behavior:
I guess there are two options:

  • set android:popupMenuStyle (in addition to popupMenuStyle, e.g like for the light theme) in the Material themes so the platform PopupMenu is styled as well (but maybe there is a reason why this was not done?),
  • update the docs to link to/suggest using androidx.appcompat.widget.PopupMenu instead.

Material Library version: master

Device: Android 15 emulator

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions