开发者

Can I put layout directory's xml file in different subdirectories in Android?

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.


Android does not support nested folders under the layout in res. Its only a linear structure.

In otherwords, , Android eclipse does not support having subfolders of resources.


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?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜