I\'m trying to set drawable resource ID to android:src of ImageView using data binding
Here is my object:
public class Recipe implem
There is no need for a custom BindingAdapter at all. Just use
BindingAdapter
app:imageResource="@{yourResId}"
and it will work fine.
Check this for how it works.