'Why menu icon color changes after running app [Android Studio]

Please help

menu icon while designing

As the menu icon color is black here but when I run the app the menu icon color become white. I don't want it to be white. Please anyone assist.

menu icon after running app



Solution 1:[1]

You probably need to change the colour values, because it seems to depend on your theme, as Niaj Mahmud said.

You should have something like this :

enter image description here

For example, you have

colors.xml

  <color name="colorPrimary">#FF808080</color>

--> this is the colour you see when designing.

colors.xml (night)

  <color name="colorPrimary">#FFFFFFF</color>

--> this is the colour you see when running the app.

You can practice here if you want to exercise the theme changed on android (this is in Kotlin, but the same course exists in Java).

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 MG1616