Search code examples
androidandroid-5.0-lollipopandroid-actionbar-compatandroid-toolbar

Toolbar doesn't show the overflow icon


I'm using the new Toolbar instead of the ActionBar. On Android 5.0 everything is just fine:

enter image description here On 4.4 it doesn't show the Overflow icon (though the function is there):

enter image description here

This is the toolbar.xml I'm using:

<android.support.v7.widget.Toolbar xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    style="@style/HeaderBar"
    app:theme="@style/ActionBarThemeOverlay"
    app:popupTheme="@style/ActionBarPopupThemeOverlay"
    android:id="@+id/toolbar_actionbar"
    app:titleTextAppearance="@style/ActionBar.TitleText"
    app:contentInsetStart="?actionBarInsetStart"
    android:layout_width="match_parent"
    android:layout_height="?actionBarSize" />

Solution

  • In the styles.xml it is needed to add the color for pre 5.0 versions:

    <style name="Theme.APP.Base" parent="Theme">
        <item name="actionBarIconColor">#fff</item>
        ...
    </style>