更改工具栏菜单中文本的颜色
Change the color of the text in Toolbar menu
我花了几个小时尝试更改工具栏菜单中文本的颜色。
例子。我有这个工具栏:
我可以用
改变箭头和树点的颜色
<item name="colorControlNormal">@color/my_awesome_color</item>
我将工具栏的颜色更改为:
<item name="colorPrimary">@color/color_primary</item>
<!-- colorPrimaryDark is used for the status bar (with the
battery, clock, etc). -->
<item name="colorPrimaryDark">@color/color_primary_dark</item>
<!-- colorAccent is used as the default value for
colorControlActivated which is used to tint widgets. -->
<item name="colorAccent">@color/color_accent</item>
弹出菜单为工具栏的 app:popuptheme 属性定义了主题,但我无法使用文本 "Example" 更改操作菜单的颜色。我该怎么做?
提前致谢:)
希望我没有迟到回答这个问题。
设置
<item name="actionMenuTextColor">@color/YourColor</item>
在您的 styles.xml 中更改菜单项文本颜色。
希望对您有所帮助。
我花了几个小时尝试更改工具栏菜单中文本的颜色。
例子。我有这个工具栏:
我可以用
改变箭头和树点的颜色<item name="colorControlNormal">@color/my_awesome_color</item>
我将工具栏的颜色更改为:
<item name="colorPrimary">@color/color_primary</item>
<!-- colorPrimaryDark is used for the status bar (with the
battery, clock, etc). -->
<item name="colorPrimaryDark">@color/color_primary_dark</item>
<!-- colorAccent is used as the default value for
colorControlActivated which is used to tint widgets. -->
<item name="colorAccent">@color/color_accent</item>
弹出菜单为工具栏的 app:popuptheme 属性定义了主题,但我无法使用文本 "Example" 更改操作菜单的颜色。我该怎么做?
提前致谢:)
希望我没有迟到回答这个问题。
设置
<item name="actionMenuTextColor">@color/YourColor</item>
在您的 styles.xml 中更改菜单项文本颜色。
希望对您有所帮助。