title: ImageView padding above and below image
body: <p>I am trying to set the image of an ImageView from a byte array like this:</p>
  
  <pre><code>Bitmap bitmap = BitmapFactory.decodeByteArray(imageData, 0, imageData.length);
  ImageView imageView = (ImageView)findViewById(R.id.imageView);
  imageView.setImageBitmap(bitmap);
  </code></pre>
  
  <p>But the image appears to have some quite large black padding at the top and the bottom, even though the actual image data does not have these. The ImageView is at the top of a LinearLayout inside a ScrollView, any ideas?</p>
  
  <p>My ImageView is designed like this:</p>
  
  <pre><code>&lt;ImageView android:layout_width="wrap_content"
     android:layout_height="wrap_content"
     android:id="@+id/imageView"/&gt;
  </code></pre>