你能在Eclipse中的Android项目的子文件夹添加到布局? [英] Can you add subfolder to layout in Eclipse Android project?
问题描述
当我创建布局文件夹的子文件夹,并拖动一个XML文件,它生成的R档似乎并没有表现出子文件夹。 a)是有没有办法改变这种状况b)的文件和文件结构仍然拾起SVN和c),所以,如果我这样做的,我还可以只使用布局参考对象?
当我在创建子文件夹 布局文件夹,并拖动一个XML文件 它生成的R档似乎并不 来显示该子文件夹
这是因为不支持机器人。你不能有资源的子文件夹。
PHP_Jedi的建议,虽然是很好的(例如,的svn:忽略
)。
When I create a subfolder in the layout folder, and drag an xml file to it, the generated R file doesn't seem to show the subfolder. a) is there a way to change that b) is the file and file structure still picked up by SVN and c) so, if I do it that way, can I still just refer to the object using layout?
When I create a subfolder in the layout folder, and drag an xml file to it, the generated R file doesn't seem to show the subfolder
That is because that is not supported by Android. You cannot have subfolders of resources.
PHP_Jedi's advice, though, is good (e.g., svn:ignore
).
这篇关于你能在Eclipse中的Android项目的子文件夹添加到布局?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!