title: Image loading failed in TokenAutoComplete library
body: <p>Im using <a href="https://github.com/splitwise/TokenAutoComplete" rel="nofollow">TokenAutoComplete</a> to create recipients, so i created custom view with image, but when i'm trying to load image into it, it doesn't work. 
  I tried with Picasso and Glide with remote and local image url's.
  It doesn't gives any error, just loads the placeholder and thats it.</p>
  
  <p>This is the relevant code :</p>
  
  <p>the xml : </p>
  
  
  
  <p></p>
  
  <pre><code>&lt;data&gt;
      &lt;import type="android.text.TextUtils" /&gt;
      &lt;import type="android.view.View" /&gt;
      &lt;import type="android.graphics.Typeface" /&gt;
  
      &lt;variable name="drawCircle" type="boolean" /&gt;
  
      &lt;variable name="imageUrl" type="String" /&gt;
  &lt;/data&gt;
  
  &lt;LinearLayout
      android:id="@id/layout_content_container"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:background="@drawable/bg_chip_token"
      android:orientation="horizontal"
      android:gravity="center_vertical"
      android:paddingRight="@dimen/view_padding"
      android:paddingEnd="@dimen/view_padding"&gt;
  
      &lt;ImageView
          style="@style/AppStyle.Widget.ListItem.Image"
          android:id="@+id/image_user" /&gt;
  
  
      &lt;TextView
          android:id="@+id/text_name"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:gravity="center_vertical"
          android:layout_marginLeft="@dimen/view_margin"
          android:layout_marginStart="@dimen/view_margin"
          android:ellipsize="middle"
          android:maxLines="1"
          android:textColor="@android:color/white"
          android:textAppearance="?android:attr/textAppearanceSmall" /&gt;
  
      &lt;ImageView
          android:id="@+id/image_dismiss"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_marginLeft="@dimen/view_margin"
          android:layout_marginStart="@dimen/view_margin"
          android:src="@drawable/ic_clear_white_24dp"
          android:visibility="gone"/&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p></p>
  
  <p>styles : </p>
  
  <pre><code>&lt;style name="AppStyle.Widget.ListItem.Image" parent="AppStyle.Widget.ImageView"&gt;
      &lt;item name="android:layout_width"&gt;@dimen/list_item_icon_size&lt;/item&gt;
      &lt;item name="android:layout_height"&gt;@dimen/list_item_icon_size&lt;/item&gt;
  &lt;/style&gt;
  </code></pre>
  
  <p>ContactsCompletionView:</p>
  
  <p>public class ContactsCompletionView extends TokenCompleteTextView {</p>
  
  <pre><code>private ChipTokenBinding mBinding;
  
  
  public ContactsCompletionView(Context context) {
      super(context);
  }
  
  public ContactsCompletionView(Context context, AttributeSet attrs) {
      super(context, attrs);
  }
  
  public ContactsCompletionView(Context context, AttributeSet attrs, int defStyle) {
      super(context, attrs, defStyle);
  
  }
  
  @Override
  protected View getViewForObject(final Recipient recipient) {
      LayoutInflater inflater = (LayoutInflater) getContext().getSystemService(Activity.LAYOUT_INFLATER_SERVICE);
      mBinding = DataBindingUtil.inflate(inflater, R.layout.chip_token, (ViewGroup) getParent(), false);
      mBinding.textName.setText(recipient.getLabel());
      ImageViewBindingAdapter.loadImage(mBinding.imageUser, recipient.getImageUrl(), true,
              Drawables.getDrawable(getContext(), R.drawable.ic_account_circle_white_36dp));
  
      return mBinding.getRoot();
  }
  
  @Override
  protected Recipient defaultObject(String completionText) {
      return null;
  }
  </code></pre>
  
  <p>ImageViewBindingAdapter:</p>
  
  <pre><code>@BindingAdapter({"imageUrl", "circle", "error"})
      public static void loadImage(ImageView view, String imageUrl, boolean circle, Drawable error) {
          if (TextUtils.isEmpty(imageUrl) &amp;&amp; error == null)
              return;
  
          Picasso.with(view.getContext())
                 .load(imageUrl)
                 .fit()
                 .transform(circle ? new CircleTransformation() : new NullTransformation())
                 .error(error)
                 .placeholder(error)
                 .into(view);
      }
  </code></pre>