title: How to display ImageView as a different size in program?
body: <p>I tried searching but I don't seem to be able to find something easy enough for a beginner like myself.</p>
  
  <p>If I have <code>ImageView</code> with a source file of 200px * 200px, and I want adjust it in the program to different sizes from time to time, let's say, to 400px * 400px. Is it possible?</p>
  
  <p>I have tried something like these and I am not able to get it work:</p>
  
  <pre><code>iv.getLayoutParams().height = 400;
  iv.getLayoutParams().width = 400;
  </code></pre>
  
  <p>this still displays my <code>ImageView</code> image the same size on the screen...</p>
  
  <p>I also tried </p>
  
  <pre><code>iv.setMaximumHeight(400);
  iv.setMaximumWidth(400);
  </code></pre>
  
  <p>it does not work for me either..</p>
  
  <p>I am trying to write this with Eclipse, with java.</p>