I add two submenu items. When I set setCheckable(true), it changes CheckBox. How to set it as radio button?
It can only select one when click once, and display the icon then close the submenu.
settingMenu.add(1, SETTING_SECOND_ID, 0, R.string.menu_setting_second).setCheckable(true);
settingMenu.add(1, SETTING_100MILLISECOND_ID, 1, R.string.menu_setting_100milisec).setCheckable(true);
You could make the group to be exclusively checkable. In your case, the group is 1. Hence a call like
will do the magic.