For some reason, in my application, when using "Theme.AppCompat" as my style, it makes the menu black text (which I have set since I want the black text) on a dark gray background, as shown below:

I tried to manually adjust the background color of the menu using several online resources, but none of them work. Does anyone know what might cause the problem? Below is my style.xml, and, as you can see, the two bottom elements in the main theme of the application theme is an attempt to change the background color using those things that I found on the Internet.
<style name="AppTheme" parent="Theme.AppCompat"> <item name="windowActionBar">false</item> <item name="android:windowBackground">@color/white_primary</item> <item name="android:textColor">@color/text_primary</item> <item name="android:textSize">@dimen/text_size_medium</item> <item name="colorAccent">@color/black_primary</item> <item name="android:popupMenuStyle">@style/PopupMenuStyle</item> <item name="android:panelFullBackground">@drawable/menu_full_bg</item> </style> <style name="PopupMenuStyle" parent="Theme.AppCompat.Light"> <item name="android:popupBackground">@android:color/white</item> </style> <drawable name="menu_full_bg">#FFFFFF</drawable>
source share