I also came across this, after I started playing, I found that our custom ThemeOverlay had its own background set.
Try removing android:background from the style and theme of the toolbar.
See below. I commented: <item name="android:background">@color/toolbar</item> . After that, it works as expected.
<style name="MyTheme.Overlay" parent="ThemeOverlay.AppCompat.Dark.ActionBar"> <item name="android:textColorPrimary">@color/text_primary</item> <item name="android:textColorSecondary">@color/text_secondary</item> <item name="android:windowBackground">@color/background</item> <item name="colorPrimary">@color/toolbar</item> <item name="colorPrimaryDark">@color/toolbar</item> <item name="colorAccent">@color/accent</item> </style>
source share