creating a menu resource directory and file in android studio we're considering empty activity in this example. we don't get menu android resource directory in empty activity. so, we will be now adding a menu resource directory. step 1: right click on res,step 2: click new -> android resource directory
Android xml, change the "resource type" to "menu" menu resource directory gets added now, add android resource file in the directory (menu) just created.
step 1: right click on “menu†directory created above, click new -> menu resource file.step 2:give file name, i named, menu_main.xml
file names should start with lowecase letter, so we gave it name, menu_main.xml "menu_main.xml" gets created i.e. resource file gets created in resource directory "menu" here are all the steps.