I want to change the text size of popup menu item. I have written this code to create a popup menu. But my problem is I couldnot access the textView of popupmenu ie"EXIT" so that i could use
exitItem.setTextSize(40);
//my code
popupmenu = new PopupMenu(MainActivity.this, findViewById(R.id.actionbar_item));
popupmenu.getMenu().add(Menu.NONE, 0, Menu.NONE, "Exit");
popupmenu.setOnMenuItemClickListener(this);
I have not created any seperate xml file to inflate these items. I want to do it programatically as these popupitems are dynamically generated.
Thanks in advance.