I generate each option of menu from querying database. Here is my code.
final PopupMenu popupMenu = new PopupMenu(getBaseContext(), v);
SQLiteDatabase db =
Please Refer How to style PopupMenu? for more explanation. I was facing the same issue, searched alot but found the solution in the link mentioned.
PopupMenu is created in following way :
PopupMenu popup = new PopupMenu(context, view);
PopupMenu takes the styling of the context which is passed, Passing Activity as the context solved my problem.