How to change background color popup menu android

后端 未结 12 2449
北恋
北恋 2020-11-29 03:47

I generate each option of menu from querying database. Here is my code.

final PopupMenu popupMenu = new PopupMenu(getBaseContext(), v); 
SQLiteDatabase db =          


        
12条回答
  •  庸人自扰
    2020-11-29 03:58

    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

提交回复
热议问题