Android studio layout分类存放

 
  
android {
 sourceSets {
        main {
            res.srcDirs = [
                    'src/main/res/layouts/home',
                    'src/main/res/layouts/view1',
                    'src/main/res/layouts/view2',
                    'src/main/res/layouts/view3',
                    'src/main/res/layouts/other',
                    'src/main/res/layouts',
                    'src/main/res'
            ]
        }
    }
}
}

你可能感兴趣的:(android技巧)