title: Change image on click and make it fit in an ImageView
body: <p>I currently working on my personal project in Android. I'm quite a newbie in android development well it's been a months since I've started to self study this but I just can't focus on this one. Well, so here's my problem, first I will discuss what I've made so far:</p>
  
  <p>I've placed a 6 ImageView for each tableRow (six table rows) in a table layout which make it a 6x6 ImageView.</p>
  
  <p>each of the imageView has a default image icon (the default icon from the android drawable).</p>
  
  <p>Once I clicked the ImageView I will change it's Image using setImageDrawable.</p>
  
  <p>the default icon of the android is sized smaller than the images I've placed in which I think 36x36 pixels is the default icon (the android default) wherein my images are in size of 80x80 pixels.</p>
  
  <p>Now here's the problem:</p>
  
  <p>Once I've clicked the image it will successfully changes the image but will also resize the imageView into the size of my image(80x80 px).</p>
  
  <p>well how do I get over this? I've tried setting the ImageView's scale type into fitXY but it has done nothing still my the imageView is resized.</p>
  
  <p>I've also tried changing the wrap_content into fill_parent but nothing also happens (well I just think that it may solve the problem lol)</p>
  
  <p>Here's the property of my ImageView:</p>
  
  <pre><code>&lt;ImageView android:scaleType="fitXY" 
             android:id="@+id/imageView1" 
             android:src="@drawable/image0" 
             android:layout_height="wrap_content" 
             android:layout_width="wrap_content"&gt;
  &lt;/ImageView&gt;
  </code></pre>
  
  <p>Any help please? Thanks in advance!</p>