如何更改选项菜单点的颜色?

How to change Options menu dots color?

我想将选项菜单的圆点颜色更改为白色。我试图为此添加图像但不起作用。如何做到这一点?

菜单 xml :

 <menu xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    tools:context="com.example.siddhi.timetablelayout.Main2Activity">

    <item android:id="@+id/action_settings" android:title="@string/action_settings"
        android:orderInCategory="100" app:showAsAction="never"
        android:icon="@drawable/ic_more_vert_white_48dp"/>
</menu>

谢谢。

您可以使用以下样式声明更改用于它的图像。

<style name="MyCustomTheme" parent="style/Theme.Holo">
<item name="android:actionOverflowButtonStyle">@style/MyCustomTheme.OverFlow</item>

</style>

<style name="MyCustomTheme.OverFlow">
<item name="android:src">@drawable/my_overflow_image</item>

</style>

把它放在你的 style.xmlAppTheme:

<!-- android:textColorSecondary is the color of the menu overflow icon (three vertical dots) -->
<item name="android:textColorSecondary">@color/white</item>