title: ImageView with squared pixels (without interpolation)
body: <p>I have a bitmap of 9X11 pixels representing a maze with the path in green, walls in black, start in orange and blue end.</p>
  
  <p>it matrix is:</p>
  
  <pre><code>int[][] map = new int[][] { 
              { 1, 1, 1, 1, 1, 1, 1, 1, 1 }, 
              { 0, 0, 1, 0, 0, 0, 0, 0, 1 },
              { 1, 1, 1, 1, 0, 1, 1, 0, 1 }, 
              { 1, 1, 1, 1, 1, 1, 1, 0, 0 },
              { 1, 0, 0, 0, 0, 1, 0, 0, 0 }, 
              { 1, 1, 1, 1, 0, 1, 1, 1, 1 },
              { 1, 1, 1, 1, 0, 1, 0, 0, 1 }, 
              { 1, 1, 1, 1, 0, 1, 0, 0, 1 },
              { 1, 1, 1, 1, 0, 1, 0, 0, 1 }, 
              { 1, 1, 1, 1, 0, 1, 0, 0, 0 },
              { 1, 1, 1, 1, 0, 1, 1, 1, 1 }, };
  </code></pre>
  
  <p>The problem is that when I draw the bitmap in a ImageView (fill_parent,fill_parent) the result is:
  <img src="https://i.stack.imgur.com/AwB5F.png" alt="enter image description here"></p>
  
  <p>How can I keep the pixels squared?</p>
  
  <p>Note: I create the Bitmap with </p>
  
  <pre><code> Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888);
  </code></pre>
  
  <p>and set the pixels with the method </p>
  
  <pre><code> bitmap.setPixel(x,y,Color.XXX);
  </code></pre>