Can the Android layout folder contain subfolders?

前端 未结 20 2825
暗喜
暗喜 2020-11-22 03:10

Right now, I\'m storing every XML layout file inside the \'res/layout\' folder, so it is feasible and simple to manage small projects, but when there is a case of large and

20条回答
  •  无人共我
    2020-11-22 03:44

    Cannot have subdirectories (easily) but you can have additional resource folders. Surprised no one mentioned it already, but to keep the default resource folders, and add some more:

        sourceSets {
            main.res.srcDirs += ['src/main/java/XYZ/ABC']
        }
    

提交回复
热议问题