简体   繁体   中英

Downloading Android Data Binding Library

在此处输入图片说明 https://developer.android.com/topic/libraries/data-binding/index.html

I wonder how to download the library from the Support repository in the Android SDK manager. It seems that I only have to set dataBinding to true in build.gradle file in the app module. Using Android Studio 2.3

You can add data binding in your project by adding the below code in your app level build.gradle file.

android {
    ....
    dataBinding {
        enabled = true;
    }
}

You don't have to do anything more for data binding. You can also check this blog.

https://medium.com/@karmakar.avijit/android-data-binding-library-i-782d773de42c

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM