android - 如何在红色文件夹中创建菜单文件夹
问题描述
当 res/layout 有 main.xml 文件时,如何使用 main.xml 创建 res/menu 文件夹
解决方案
- In the project tab of left pane, select the res folder and Control+click to open context menu. Then, New > Android Resouce Directory.
- Just name it menu for the directory name. And click ok.
- Now you got res/menu, select it and Control+click to open context menu. Then, New > Menu Resource File.
- Input your menu resource file's name (ex. main).
- At last you can get res/menu/main.xml.
推荐阅读
- gradle - 使用 Maven BOM 文件时下载依赖项
- python - 如何将整数列表转换为图像?
- docker - docker 无法运行已经存在的 go 输出文件
- debugging - 将java源代码导入netbeans
- powershell - 以时间间隔在隐藏的 Internet Explorer 中打开束 URL
- c++ - Boost:列出GraphML中指定的顶点和边属性
- google-apps-script - 谷歌脚本,如何创建一个脚本来根据他们的 id 链接多个电子表格?
- corda - 为什么我在启动 Corda 节点时收到 Liquibase 校验和验证错误
- apache - 将子域重定向到外部站点的 CNAME 规则不起作用
- sql - SQLite 有时会忽略列的值