Wrong background for CAB in landscape mode with appcompat-v7 22.2

136 Views Asked by At

I'm using android support v7 appcompat library (version 22.2). I have set a theme to my toolbar:

<android.support.v7.widget.Toolbar
    ...
    app:popupTheme="@style/ThemeOverlay.AppCompat.Light"
    app:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar" />

And set theme for app:

<style name="Theme.MyTheme" parent="Theme.AppCompat.Light.NoActionBar">
    <item name="colorPrimary">@color/material_orange_500</item>
    <item name="colorPrimaryDark">@color/material_orange_800</item>
    <item name="colorAccent">@color/material_orange_500</item>
</style>

That's what I saw in version 21 in portrait mode and same in landscape mode Version 21

But in version 22.2 I see wrong background in in landscape mode (but right in portrait mode) Version 22.2

How can I fix this bug?

0

There are 0 best solutions below