Lecture 5 - Menu

home | previous | next


Menus are used in applications to handle some common functionality around the application. Let’s study how to create options menu for android application.



Exercise 5.1

Download the above resource file.
Study how to create menu system and how it works.

Exercise 5.2

Study how differently the menus are displayed with the ActionBar?

Exercise 5.3

Copy the project as a new project.
Add images into resource folder and make menus to show images.

Exercise 5.4

Last lecture, we retrieved images from assets folder. Today we displayed images from resource folder.
Explain how different the two ways are. Discuss what situation you would use the first way. What situation would you use the second way?