title: Loading Image into ImageView with Glide
body: <p>I have an app which loads images from api into my imageView which is in my RecyclerView.</p>
  <p>Here is my ImageView :</p>
  <pre><code>&lt;ImageView
  android:id=&quot;@+id/Group_ImageView&quot;
  android:layout_width=&quot;match_parent&quot;
  android:layout_height=&quot;wrap_content&quot;
  android:minHeight=&quot;100dp&quot;
  android:layout_alignParentTop=&quot;true&quot;
  android:background=&quot;@color/_Opacity&quot;
  android:scaleType=&quot;centerInside&quot;
  android:src=&quot;@mipmap/ic_launcher&quot; /&gt;
  </code></pre>
  <p>and here is the image loading part in my adapter with glide :</p>
  <pre><code>Glide.with(mContext).load(goodGroups.getImageUrl()).asBitmap().dontTransform().listener(new RequestListener&lt;String, Bitmap&gt;() {
          @Override
          public boolean onException(Exception e, String s, Target&lt;Bitmap&gt; target, boolean b) {
              return false;
          }
  
          @Override
          public boolean onResourceReady(Bitmap bitmap, String s, Target&lt;Bitmap&gt; target, boolean b, boolean b1) {
              bitmap.setDensity(mContext.getResources().getDisplayMetrics().densityDpi);
              return false;
          }
      }).placeholder(R.mipmap.ic_launcher).error(R.drawable.ic_menu_gallery).into(holder.imageView);
  
  </code></pre>
  <p>here is the screen shot of my problem below :
  <a href="https://i.stack.imgur.com/WwQ8Q.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/WwQ8Q.jpg" alt="issue screen shot" /></a></p>
  <p>my problem is with the part shown by a red line in the picture. the blue line shows my Imageview. the red part isn't supposed to be shown.
  I've tried changing the ScaleType to &quot;FitXY&quot; or &quot;CenterCrop&quot; but it messes up with the picture size. I want my picture shown without any cropping, with its original size, and without these padding-like spaces in ImageView.</p>
  <p>What should I do?!</p>