首页 > 解决方案 > 如何在红色文件夹中创建菜单文件夹

问题描述

当 res/layout 有 main.xml 文件时,如何使用 main.xml 创建 res/menu 文件夹

标签: androidxml

解决方案


  1. In the project tab of left pane, select the res folder and Control+click to open context menu. Then, New > Android Resouce Directory.

screenshot 1

  1. Just name it menu for the directory name. And click ok.

screenshot 2

  1. Now you got res/menu, select it and Control+click to open context menu. Then, New > Menu Resource File.

screenshot 3

  1. Input your menu resource file's name (ex. main).

screenshot 4

  1. At last you can get res/menu/main.xml.

screenshot 5


推荐阅读