I tried to configure my options menu so that in the 1st and 2nd line there were 2 buttons, and then 1 button in the third line. Here is the code I tried to use, but I assume that the groupID argument is not the way I thought.
menu.add(1, MENU_NAME, 1, "by Name"); menu.add(1, MENU_NUMBER, 2, "by Number"); menu.add(2, MENU_POSITION, 1, "by Position"); menu.add(2, MENU_COLLEGE, 2, "by College"); menu.add(3, MENU_UPDATE, 1, "Update Roster");
Perhaps this was somehow solved using an XML layout, but I am not very good at layouts (so I also did not manage to go too far.
source share