title: ImageView's wrap_content not working with Glide
body: <p>I'm testing the glide for loading the images in my project.</p>
  
  <p>I created the following layout</p>
  
  <pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:orientation="vertical"&gt;    
      &lt;ImageView
          android:id="@+id/imageview"
          android:background="#550000ff"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content" /&gt;    
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>When I load the image with the <code>imageView.setImageResource(int)</code> it loads correctly (see screenshot below)</p>
  
  <pre><code>@Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_main);
      ImageView imageView= (ImageView) findViewById(R.id.imageview);
      imageView.setImageResource(R.drawable.pen_logo);
  }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/fzM8V.png" rel="noreferrer"><img src="https://i.stack.imgur.com/fzM8V.png" alt="enter image description here"></a></p>
  
  <p>But when I load it with glide the image get expanded ignoring the <strong>wrap_content</strong> layout params:</p>
  
  <pre><code>@Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_main);
      ImageView imageView = (ImageView) findViewById(R.id.imageview);
      Glide.with(this).load(R.drawable.pen_logo).into(imageView);
  }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/0EJA0.png" rel="noreferrer"><img src="https://i.stack.imgur.com/0EJA0.png" alt="enter image description here"></a></p>
  
  <p>How can I solve this problem?</p>