Android的布局文件夹组织 [英] Android layout folder organization

查看:138
本文介绍了Android的布局文件夹组织的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开发一个Android应用程序,我现在已经在布局文件夹约8布局的XML文件。需要组织该文件夹在增加每增加一个布局资源文件。然而,当我创建一个文件夹的布局文件夹内,并通过重构操作移动资源给它,它打破我的项目。

I am developing an Android app and I currently have about 8 layout xml files in the layout folder. The need for organizing this folder is increasing with each additional layout resource file. However, when I create a folder inside of the layout folder and move a resource to it via the refactor operation, it breaks my project.

例如,我的资源正在这里refernced:

For example, my resource is being refernced here:

setContentView(R.layout.login);

移动后的 login.xml 文件名为新建文件夹测试,它打破我的身材。

After moving the login.xml file to a newly created folder called "test", it breaks my build.

如果我更新引用:

setContentView(R.layout.test.login);

它仍然不能编译。

It still doesn't compile.

任何帮助将是很大的AP preciated。

Any help would be greatly appreciated.

推荐答案

目前不支持的资源子文件夹。我想大家谁读这应该提上了<一星href="http://$c$c.google.com/p/android/issues/detail?id=2018&q=sub%20folder%20res&colspec=ID%20Type%20Status%20Owner%20Summary%20Stars">issue.

Sub folders in resources is not currently supported. I think everyone who read this should put a star on the issue.

这篇关于Android的布局文件夹组织的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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