我可以把布局目录的XML文件中的Andr​​oid在不同的子目录? [英] Can I put layout directory's xml file in different subdirectories in Android?

查看:134
本文介绍了我可以把布局目录的XML文件中的Andr​​oid在不同的子目录?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道我可以把RES /布局目录中的所有XML文件在res /布局目录的子目录。
对于如RES /布局/ settings_layout,RES /布局/ menu_layout等。

I want to know can I put res/layout directory's all xml files in subdirectories of res/layout directory. For eg res/layout/settings_layout,res/layout/menu_layout etc.

推荐答案

如果你这样做,条目不会被添加到您的R舱,所以他们不会提供给你。

If you do this, the entries will not get added to your R class and so they won't be available to you.

那岂不是一直要简单得多,只是尝试一下,而不是发布问题并等待一个答案?

Wouldn't it have been much more simple to just try it than to post the question and wait for an answer?

这篇关于我可以把布局目录的XML文件中的Andr​​oid在不同的子目录?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆