@BindingAdapter("underline")
fun setUnderline(textView: MaterialTextView, underline:Boolean = false) {
if (underline){
textView.paintFlags = Paint.UNDERLINE_TEXT_FLAG
}
}
@BindingAdapter("setImage")
fun setImage(imageView: ImageView, imageLink: String?) {
imageLink?.let {
Glide.with(imageView.context.applicationContext)
.load(it).into(imageView)
}
}
0 comments:
Post a Comment