Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Set menu overflow icon to be white

I have a dummy app that I'm making just to get the hang of Android development. I managed to get a menu overflow icon to appear on my toolbar, but I can't seem to figure out how to change it to white.

I'm using a Toolbar widget (without support libraries; that's something I don't want to do).

Here is what I have: enter image description here

I just want to make the overflow menu white.

styles.xml

<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="AppTheme" parent="android:Theme.Material.Light.DarkActionBar">
    <item name="android:windowNoTitle">true</item>
    <item name="android:windowActionBar">false</item>

    <item name="android:colorPrimary">@color/primary</item>
    <item name="android:colorPrimaryDark">@color/primary_dark</item>
    <item name="android:colorAccent">@color/accent</item>
</style>

like image 446
Nxt3 Avatar asked May 11 '15 22:05

Nxt3


People also ask

What is overflow menu icon?

4 Comments. The overflow icon is a common UI convention that's leveraged throughout Android to hide settings and other unimportant options. Google is now replacing it in the Play Store with a “tap & hold” gesture and bottom sheet menu.


1 Answers

Just add android:theme="@style/ThemeOverlay.AppCompat.Dark" to the toolbar

 <android.support.v7.widget.Toolbar
        android:id="@+id/toolbar"
        android:layout_width="match_parent"
        android:layout_height="?attr/actionBarSize"
        android:background="?attr/colorPrimary"
        app:popupTheme="@style/AppTheme.PopupOverlay"
        android:theme="@style/ThemeOverlay.AppCompat.Dark"/>

This thing worked for me :)

like image 168
Nihas Nizar Avatar answered Oct 21 '22 09:10

Nihas Nizar