A sweet ,small set of kotlin functions to reduce your android boilerplate code
Add this in your project level build.gradle
file (not your module build.gradle
file):
allprojects{
repositories {
maven { url "https://jitpack.io" }//add this line
}
}
Then, add the library to your module build.gradle
dependencies{
compile 'com.github.priya5713:BindingAdapterUtills:-SNAPSHOT'
}
mBinding.url = imgurl //img url = "https://xyx.com",url is variable
use binding with recyclerview binding.recyclerview
use binding with textswitcher binding.textLayoutSwitch = R.layout.root_layout