Skip to content

[Material Toolbar/Action Menu] Material Toolbar action menu incorrect background #674

@ezorrio

Description

@ezorrio

Screenshots of the issue

image
image
Left (correct behavior): Android 10 / Right (incorrect behavior): Android 5.1
Component: Material Toolbar (com.google.android.material:material:1.1.0-beta01)
Base Theme: Theme.MaterialComponents.DayNight.NoActionBar

I'm passing app:theme attribute to Material Toolbar xml with following theme

<style name="Theme.Toolbar" parent="ThemeOverlay.MaterialComponents.Toolbar.Surface">
        <item name="android:tint">?colorOnSurface</item>
        <item name="actionMenuTextColor">?colorOnSurface</item>
        <item name="android:textColorPrimary">?colorOnSurface</item>
        <item name="android:textColorSecondary">?colorOnSurface</item>
</style>

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions