Load image with data binding
<p>I would like to set the image using the Android Data Binding. I have read a lot of tutorials about this and the images still don't appear.</p>

<p>Inside my model I have the following method:</p>

<pre><code>@BindingAdapter({"app:imageUrl"})
    public static void loadImage(ImageView view, String url) {

        Log.i("III", "Image - " + url);
        Context context = view.getContext();
        Glide.with(context).load(GlobalValues.img_start_url + url).into(view);
    }
</code></pre>

<p>I also should mention that "III", "Image - " + url is never print so the problem is not with the Glide. </p>

<p>This is my xml:</p>

<pre><code> &lt;data&gt;

    &lt;variable
        name="feeling"
        type="bg.web3.helpkarma.ViewModels.Feeling"/&gt;

&lt;/data&gt;

&lt;ImageView
            android:layout_width="wrap_content"
            android:id="@+id/icon"
            android:layout_height="wrap_content"
            android:layout_marginRight="16dp"
            app:imageUrl="@{feeling.maleIcon}"/&gt;
</code></pre>

<p>and the maleIcon is a url String </p>

<pre><code>@SerializedName("male_icon")
@Expose
private String maleIcon;
</code></pre>