I generate each option of menu from querying database. Here is my code.
final PopupMenu popupMenu = new PopupMenu(getBaseContext(), v); SQLiteDatabase db =
Please Add Following lines in style xml file, I hope this will help for material design application. Style.xml
For more details refer this link http://www.viralandroid.com/2016/01/how-to-change-background-and-text-color-of-android-actionbar-option-menu.html