inflate
Inflate a menu hierarchy from the specified XML resource. Throws InflateException if there is an error.
Parameters
menuRes
Resource ID for an XML layout resource to load (e.g., R.menu.main_activity
)
menu
The Menu to inflate into. The items and submenus will be added to this Menu.