Solved

Consider the Following the Code: Public Boolean OnCreateOptionsMenu(Menu Menu)

Question 32

Multiple Choice

Consider the following the code: public boolean onCreateOptionsMenu(Menu menu) {     MenuInflater inflater = getMenuInflater() ;     inflater.inflate(R.menu.game_menu, menu) ;     return true; } Which of the following is true about the code above?


A) The code is auto generated and should not be edited
B) This method handles clicks and assign actions to menu items
C) This function inflates an XML file in the res/menu folder into menu items
D) This method inflates an XML file in the res/layout folder into layout.

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions