Which method inflates the options menu?
- onPrepareMenu()
- onCreateOptionsMenu()
- onCreateContextMenu()
- onOptionsItemSelected()
Answer
B) onCreateOptionsMenu()
onCreateOptionsMenu inflates the menu XML.
Computer Science MCQ · More Action Bar and User Interface Design MCQs · Practise