title: How to run an Pinch-Zoom example on android?
body: <p>To run an example on android to use PinchZoom I found the following <a href="http://capycoding.blogspot.fr/2012/02/pinch-zoom-on-imageview.html" rel="nofollow noreferrer">example</a>. I was able to write a working example code which shows the View from the example - but it is all white! How can I use an actual image in this example?</p>
  
  <p>I tried the following in the activity-xml:</p>
  
  <pre><code>&lt;FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:custom="http://schemas.android.com/apk/res-auto"
      xmlns:app="http://schemas.android.com/apk/res-auto"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:background="#FFFFFF"
      android:orientation="vertical" &gt;
  
      &lt;com.example.alexander.capycoding_pinchzoom.CanvasView
          android:id="@+id/signature_canvas"
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:src="@drawable/image"
          android:textColor="#FFFFFF" /&gt;
  &lt;/FrameLayout&gt;
  </code></pre>
  
  <p>to use an actual non-white image, but it does not work. (I also renamed the class from <code>ZoomableImageView</code> to <code>CanvasView</code>).</p>
  
  <p>Maybe there is another/better example on how to make PinchZoom workable on a <code>Canvas/Bitmap</code> in android?</p>