是否有可能把布局的xml子目录中的下/ RES /布局? [英] Is it possible to put layout xml's in subdirectories under /res/layout?
本文介绍了是否有可能把布局的xml子目录中的下/ RES /布局?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的布局文件被不断扩张。所以,我想出了将它们放在子目录中的想法。可能吗?简单code:
My layout files are growing and growing. So I came up with an idea of putting them in subdirectories. Is it possible? Simple code:
<include android:id="@+id/mLayout" layout="@layout/subdirectory/blahblah">
似乎没有工作。
推荐答案
简短的回答是:不,这是不可能的。
The short answer is: no it isn't possible.
您只能做出不同的分辨率和屏幕尺寸的子文件夹。
You can only make subfolders for different resolutions and screen sizes.
这篇关于是否有可能把布局的xml子目录中的下/ RES /布局?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文