I am using the implementation from the guide described at the MaterialDesign website
Whatever I try, the menu text colours and native menu icons, like the expand menu icon, are the wrong colour, specifically they appear to be the light mode colours. I want them to be dark theme text (white text and native menu icons on dark surface).
The other aspects are fine such as toolbars, cardviews, text, and other surfaces.
From what I understand, this should just work without any code modifications and the text colour should automatically be changed to a light colour when appearing on a stock overflow menu's 'surface'.
I don't believe I am overwriting this anywhere. There are no other styles in the project that I know of.
My styles.xml:
<style name="MyTheme" parent="Theme.MaterialComponents.DayNight.NoActionBar">
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorSecondary">@color/colorSecondary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>
<item name="colorControlActivated">@color/colorControlActivated</item>
</style>
build.gradle:
android {
compileSdkVersion 29
defaultConfig {
applicationId "poop"
minSdkVersion 17
targetSdkVersion 29
versionCode 24
versionName "3.2.2"
multiDexEnabled true
vectorDrawables.useSupportLibrary = true
}
compileOptions {
sourceCompatibility = 1.8
targetCompatibility = 1.8
}
}
I have tried some of the theme overwriting suggestions relating to menu issues on stackoverflow. Most do not fix the text and it remains black.
Some do fix the text but the other items like the chevron to expand a sub menu, remains black on a dark surface.
