Google

Friday, July 9, 2010

Creating Menus the XML way

When you click menu and select Test menu-item, the textview on displays the message.

Inflate (from xml) the menu and handle the menu selection event

Give an id to textview so that it can be referenced from Activity


Here's where the menu is designed in XML.