开发者

how to create subfolder inside layout folder in Android and how to get id of layout which is inside of subfolder?

res/layout开发者_如何转开发 ---layout/subfolder1 ---layout/subfolder2 is it right way to create sub folder inside layout folder in Android

and how to get id of layout from that sub folder.

Example:

res/layout ---layout/main.xml]

setContentView(R.layout.main);


You cant do that. I mean you can create folders if you want to but you can access them like "R.layout.sub1.layoutfile".


You can't do that. All you layout files must be in the root of the layout folder.


I don't think this is possible. yaa you may create folder for landscape layout. path will be : res> layout-land (folder name)

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜