Android 如何更改活动工具栏中的菜单指示器颜色

Android 如何更改活动工具栏中的菜单指示器颜色,android,material-design,toolbar,Android,Material Design,Toolbar,我想在“活动”工具栏中更改菜单指示器的颜色,现在它的颜色不是白色,或者它有alpha选项,我想变成白色 我正在使用AppCompatActivity,下面是我的工具栏xml代码 <?xml version="1.0" encoding="utf-8"?> <android.support.v7.widget.Toolbar android:layout_height="wrap_content" android:layout_width="match_parent" andr

我想在“活动”工具栏中更改菜单指示器的颜色,现在它的颜色不是白色,或者它有alpha选项,我想变成白色

我正在使用AppCompatActivity,下面是我的工具栏xml代码

<?xml version="1.0" encoding="utf-8"?>
<android.support.v7.widget.Toolbar
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:background="@color/primary"
android:elevation="2dp"
android:theme="@style/Base.ThemeOverlay.AppCompat.Dark"
xmlns:android="http://schemas.android.com/apk/res/android" />


谢谢

您可以自定义白色溢出图标,并将该图标应用到您的主题样式中,如下所示

<!-- Application theme. -->
<style name="AppTheme" parent="AppBaseTheme">
      <item name="android:actionOverflowButtonStyle">@style/CustomOverFlow</item>     
</style>

<style name="CustomOverFlow" parent="@android:style/Widget.Holo.ActionButton.Overflow">
    <item name="android:src">@drawable/your_custom_icon</item>
</style>

@样式/自定义溢出
@可绘制/自定义图标

您只需更改colorControlNormal属性

 <!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
    <!-- Customize your theme here. -->
    <item name="colorControlNormal">#FFFFFF</item>
</style>

#FFFFFF