Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/185.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java Android |更改溢出图标(3点菜单)颜色?_Java_Android_Xml_Layout_Themes - Fatal编程技术网

Java Android |更改溢出图标(3点菜单)颜色?

Java Android |更改溢出图标(3点菜单)颜色?,java,android,xml,layout,themes,Java,Android,Xml,Layout,Themes,我已经为此寻找了一个解决方案,并尝试了多种解决方案,但没有一种对我有效 这是我的风格。xml <resources> <!-- Base application theme. --> <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar"> <!-- Customize your theme here. --> <

我已经为此寻找了一个解决方案,并尝试了多种解决方案,但没有一种对我有效

这是我的风格。xml

<resources>

    <!-- Base application theme. -->
    <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
        <!-- Customize your theme here. -->
        <item name="colorPrimary">@color/colorPrimary</item>
        <item name="colorPrimaryDark">@color/colorPrimaryDark</item>
        <item name="colorAccent">@color/colorAccent</item>


    </style>

    <style name="AppTheme.NoActionBar">
        <item name="windowActionBar">false</item>
        <item name="windowNoTitle">true</item>
    </style>

    <style name="AppTheme.AppBarOverlay" parent="ThemeOverlay.AppCompat.Dark.ActionBar" />

    <style name="AppTheme.PopupOverlay" parent="ThemeOverlay.AppCompat.Light" />

</resources>

@颜色/原色
@颜色/原色暗
@颜色/颜色重音
假的
真的

如何更改3点菜单图标的颜色?

1。在项目中添加所需颜色的新可绘制三点菜单。

2。创建新样式

<style name="OverFlow" parent="Widget.AppCompat.ActionButton.Overflow">
    <item name="android:src">@drawable/overflow</item>
</style>

@可抽出/溢流

3。将该样式应用于主样式主题
@style/OverFlow

1。在项目中添加所需颜色的新可绘制三点菜单。

2。创建新样式

<style name="OverFlow" parent="Widget.AppCompat.ActionButton.Overflow">
    <item name="android:src">@drawable/overflow</item>
</style>

@可抽出/溢流

3。将该样式应用于主样式主题
@style/OverFlow

,但为此,我必须为每个屏幕密度大小生成图标。我不知道如何做到这一点,但为此,我将不得不为每个屏幕密度大小生成图标。我不知道怎么做