title: Fixed height and width imageview with large size bitmap issue
body: <p>I am trying to set bitmap of higher size to imageview of fixed height and width,</p>
  
  <p>Imageview in xml</p>
  
  <pre><code> &lt;ImageView
         android:id="@+id/imgDisplay"
         android:layout_width="320dp"
         android:layout_height="180dp"
         android:layout_marginLeft="10dp"
         android:layout_marginTop="5dp"
         android:contentDescription="@string/app_name" /&gt;
  </code></pre>
  
  <p>When i am using the following code error is avoided but the image appeared is blurred because of BitmapFactory.Options options,</p>
  
  <pre><code>BitmapFactory.Options options = new BitmapFactory.Options(); 
              options.inPurgeable = true;
              options.inSampleSize = 4;
              Bitmap myBitmap = BitmapFactory.decodeFile(Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES)+"/"+photo, options);
              imgMainItem.setImageBitmap(myBitmap);
  </code></pre>
  
  <p>What else are the option available of setting a image of higher size and fixed height and width please help</p>