title: Images scales defferently in setImageDrawable() and setImageBitmap()?
body: <p>I am new in android development. I have an issue regarding the image scaling in my app. When i set images using setImageDrawable() images look proper like in screenshot:</p>
  
  <p><img src="https://i.stack.imgur.com/YXWgo.png" alt="enter image description here"></p>
  
  <p>But if i  set image using setImageBitmap() method it does not look proper. Some black color occurs around it like in screenshot bellow:</p>
  
  <p><img src="https://i.stack.imgur.com/jL8SH.png" alt="enter image description here"></p>
  
  <p>I have tried it in multiple applications and i observed that in some applications the image size is becoming smaller than the size ofter setting image through <code>setImageDrawable()</code> or <code>setImageResource()</code>.
  the reason for setting images through <code>setImageBitmap()</code> is that i want to set images to the imageviews which are kept in assets folder and not in drawable.</p>
  
  <p>Following is the code i used to create a bitmap and set it to imageview:</p>
  
  <pre><code>                        BitmapFactory.Options opts = new Options();
                          opts.inPurgeable = true;
  
                          try
                          {
                              Bitmap preview_bitmap = BitmapFactory.decodeStream(assetManager.open(drawableFolder+"/"+tmpArr[0]),null,opts);
                              view.setImageBitmap(preview_bitmap);
  
                          }
                          catch (Exception e) 
                          {
                              LNLog.writeTOErrorToLog(e.getMessage());
                          }
  </code></pre>
  
  <p>So, please can anyone tell me where i'm i going wrong or missing something to set.
  I tried to set Options but did not worked.  I want to set images as in first screenshot that is how they looks by using <code>setImageDrawable()</code>.
     Thanx in advance.</p>
  
  <p>Note: in screenshots images are referent in text on it only.IF i set hindi images i.e. the images on which text is in hindi language using setImageDrawable() then they looks proper as in like in screen shot one.So , no issue of image files.</p>