title: Changing the size of an ImageView when image clicked
body: <p>I am trying to get a picture, within an ImageView, to increase in size when clicked. I have searched for a number of days, but have not found exactly what I need.
  At the moment I am using the TouchImageView from MikeOrtiz, and it works in that, when the image is clicked, it zooms in. 
  But I want the image to increase in size, not just to zoom in, and while leaving the rest of the page opaque, the image needs to increase to the size of the screen while retaining its aspect ratio, i.e. it is a square image, so it should not become a rectangular image.</p>
  
  <p>I have the following XML code:</p>
  
  <pre><code>&lt;LinearLayout
  &lt;com.example.TouchImageView
      android:id="@+id/imageView2"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_marginBottom="10dp"
      android:layout_marginTop="14dp"
      android:contentDescription="@string/CompanyHeader" 
      android:src="@drawable/entrancex250"/&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>I am using the TouchImageView from:</p>
  
  <p><a href="https://github.com/MikeOrtiz/TouchImageView/blob/master/src/com/ortiz/touch/TouchImageView.java" rel="nofollow">https://github.com/MikeOrtiz/TouchImageView/blob/master/src/com/ortiz/touch/TouchImageView.java</a></p>
  
  <p>As explained, what this does is to zoom in, but what I need is to make the image itself bigger when clicked, and then back to its normal size when clicked again.</p>
  
  <p>Thanks very much.</p>