安卓kotlin使用databinding功能
Step 1: Enable data binding
Open the build.gradle (Module: app) file.
Inside the android section, before the closing brace, add a buildFeatures section and set dataBinding to true.
buildFeatures {
dataBinding true
}
because of kotlin , you should use
原创
2021-07-08 09:42:25 ·
615 阅读 ·
2 评论