Android binding adapter passing multiple arguments cause error
Problem is @dimen/place_holder_size, it returns float while you are catching it as int change you BindingAdapter method to this @BindingAdapter({“bind:url”, “bind:size”}) public static void loadImage(ImageView imageView, String url, float size) { } you can refer this