Question: I have two data frames:

```
  customer material Freq
1  1       12       1
2  1       10       1
3  1        8       1
4  1        4       1
5  1        3       1
6  1        2       1

```

and the second one:

```
  material class
1 12       A
2 10       B
3 3        C
4 4        D
5 5        E
6 6        F

```

Now I want to merge the two data frames. I tried it with:

```
e <- left_join(A, B, by="material")

```

But then I have all materials multiple times. How can I solve this problem?

Answer: 
This is normal error because the class `ImageView` doesn't contain a method `setImageUrl`, so you need to do a workaround for that by creating a class that `extends ImageView` and contains a method named `setImageUrl` that takes a `String` as parameter and set the image inside that method using `Picasso` library:

```
public class MyImageView extends ImageView {

    // ... here is the constructors
    public void setImageUrl(String url) {
        Picasso.get().load(url).into(this);
    }
}

```

and after that you can use it in the xml like this: 

```
<com.yourPackage.MyImageView
    android:id="@+id/circleImageView"
    android:layout_width="100dp"
    android:layout_height="100dp"
    app:image_url="@{abc.picture.thumbnail}"
    />

```
I just changed from 

> 
> app:srcCompat
> 
> 
> 

to 

> 
> android:src
> 
> 
> 

in my case when using it together with databinding.Working fine now.Hope this helps.

**OLD CODE**

```
<androidx.appcompat.widget.AppCompatImageView
                android:layout_width="80dp"
                android:layout_height="80dp"
                android:textSize="16sp"
                android:fontFamily="@font/avenir_roman"
                android:textColor="@color/textColor"
                app:srcCompat="@{model.image}"/>

```

**NEW CODE**

```
  <androidx.appcompat.widget.AppCompatImageView
                    android:layout_width="80dp"
                    android:layout_height="80dp"
                    android:textSize="16sp"
                    android:fontFamily="@font/avenir_roman"
                    android:textColor="@color/textColor"
                    android:src="@{model.image}"/>

```