http://blog.csdn.net/yingtian648/article/details/52432438(转载)
1.在Toolbar.xml中设置弹出菜单的风格(app:popupTheme =@style/OverflowMenuStyle)
toolbar.xml
<?xml version="1.0" encoding="utf-8"?> <!-- android:background 设置ToolBar背景色 android:titleTextColor 设置字体颜色 app:navigationIcon 设置左边按钮图标 app:popupTheme 设置弹出菜单的风格 --> <android.support.v7.widget.Toolbar xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:id="@+id/toolbar" android:layout_width="match_parent" android:layout_height="?attr/actionBarSize" android:background="?attr/colorPrimary" app:navigationIcon="@drawable/back" android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar" app:popupTheme="@style/OverflowMenuStyle" > </android.support.v7.widget.Toolbar>