Change color of ToolBarItem in XAML

Viewed 15545

I've added a toolbaritem in my app, however i dont see a way to change its background and text color.

<ContentPage.ToolbarItems>

    <ToolbarItem Text="About" 
                 Icon="ic_action_more_vert.png"
                 Priority="0"
                 Order="Secondary"
                 Clicked="ToolbarItem_Clicked"/>

    <ToolbarItem Text="Settings"
                 Icon="ic_action_more_vert.png"
                 Priority="0"
                 Order="Secondary"/>

</ContentPage.ToolbarItems>

This is what I'd like changed. The black menu with white text, want to change that bg color and text color. Any idea how to achieve this?

enter image description here

4 Answers

This worked for me

In styles.xml

<item name="android:actionMenuTextColor">#000080</item>

To change first item text edit android:theme android:theme="@style/ThemeOverlay.AppCompat.Light" or android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar" for second item text edit popupTheme

Related