title: ImageView Scale and Width/Height change
body: <p>I am trying to use a C# port of  <a href="http://blog.gorges.us/2010/06/android-two-dimensional-scrollview/" rel="nofollow">TwoDScrollView</a> in a Xamarin/Android project.</p>
  
  <p>It works fine. We are adding scale gesture (we are showing an image that can be zoomed in/out by the user). That works fine as well.</p>
  
  <p>The issue is that TwoDScrollView relies on ImageView.Width and ImageView.Height to make its calculation and that does NOT change - causing problems when trying to scroll after scaling. On resizing we are doing: </p>
  
  <pre><code>fullscreenImageView.ScaleX = _scaleFactor;
  fullscreenImageView.ScaleY = _scaleFactor;
  var lp = fullscreenImageView.LayoutParameters;
  
  lp.Width = (int) (fullscreenImageView.Drawable.IntrinsicWidth * _scaleFactor);
  lp.Height = (int) (fullscreenImageView.Drawable.IntrinsicHeight * _scaleFactor);
  
  fullscreenImageView.RequestLayout (); //the request layout was just a test,
                                        // it doesn't work either way
  </code></pre>
  
  <p>We can see how the layoutparameter width and height change, but the View.Width and View.Height never change... it is always the dimensions of the original image we loaded. How can we make that update? (one solution is to scale the bitmap and assign it to the imageview, but that's lousy and slow).</p>
  
  <p>thanks.</p>