NOTE: I have searched for an hour and tried all solutions already provided by stackoverflow.
I am studying theme over
i did it pls check if anybody have problem too add this to style
and the code of popmenu is
private void openPopMenuList(View view) {
//custom background COlor view
PopupMenu popup = new PopupMenu(new ContextThemeWrapper(getActivity(), R.style.CustomPopupTheme), view);
try {
// Reflection apis to enforce show icon
Field[] fields = popup.getClass().getDeclaredFields();
for (Field field : fields) {
if (field.getName().equals( POPUP_CONSTANT )) {
field.setAccessible( true );
Object menuPopupHelper = field.get( popup );
Class> classPopupHelper = Class.forName( menuPopupHelper.getClass().getName() );
Method setForceIcons = classPopupHelper.getMethod( POPUP_FORCE_SHOW_ICON, boolean.class );
setForceIcons.invoke( menuPopupHelper, true );
break;
}
}
} catch (Exception e) {
e.printStackTrace();
}
popup.getMenuInflater().inflate( R.menu.pop_up_menu, popup.getMenu() );
popup.setOnMenuItemClickListener( this );
popup.show();
}
and the below is popmenu items