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)
精彩评论