📜  android绑定适配器多参数——随便代码示例

📅  最后修改于: 2022-03-11 15:00:39.330000             🧑  作者: Mango

代码示例1
@BindingAdapter(value = ["url", "defaultImage", "placeholder", "circleCrop"], requireAll = false)
fun ImageView.setImageUrl(url: String, default: Drawable? = null, placeholder: Drawable? = null, circleCrop: Boolean = false) {
  // code
}