Administrator
2021-11-06 73ece7bafeec74191a5919efb6839c508522f917
layout 子文件夹
1 files added
1 files modified
19 ■■■■■ changed files
app/build.gradle 12 ●●●●● patch | view | raw | blame | history
app/src/main/res/layout/item/layout/dynamic_item_square.xml 7 ●●●●● patch | view | raw | blame | history
app/build.gradle
@@ -28,6 +28,18 @@
    buildFeatures {
        viewBinding true
    }
    sourceSets {
        main {
            //声明layout子文件夹
            res.srcDirs = [
                    'src/main/res/layout/item',
                    //下面两个是固定兼容写法
                    'src/main/res/layout',
                    'src/main/res'
            ]
        }
    }
}
dependencies {
app/src/main/res/layout/item/layout/dynamic_item_square.xml
New file
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent" >
</androidx.constraintlayout.widget.ConstraintLayout>