开发者

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

开发者 https://www.devze.com 2023-03-15 17:44 出处:网络
I want to know can I put res/layout directory\'s开发者_如何转开发 all xml files in subdirectories of res/layout directory.

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

精彩评论

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