Bindingadapter Kotlin Code Example
Example: android binding adapter multiple parameters
@BindingAdapter(value = ["url", "defaultImage", "placeholder", "circleCrop"], requireAll = false) fun ImageView.setImageUrl(url: String, default: Drawable? = null, placeholder: Drawable? = null, circleCrop: Boolean = false) { // code }
Comments
Post a Comment