S

Shyam Dubey • 3.70K Points
Extraordinary

Q. Which method is used to inflate a menu in an Activity?

  • (A) onCreate()
  • (B) inflateMenu()
  • (C) onCreateOptionsMenu()
  • (D) loadMenu()

Explanation by: Shyam Dubey

onCreateOptionsMenu() is used to inflate the menu XML into the activity.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.