item.itemId in onOptionsItemSelected gives:
- The number of items
- The item's icon
- The activity ID
- The ID of the menu item that was clicked
Answer
D) The ID of the menu item that was clicked
itemId identifies the selected item.
Computer Science MCQ · More Lab: Menus and Messages MCQs · Practise