title: Using TouchImageView (external class) for gestures with image
body: <p>I tried using TouchImageView which I found in <a href="https://github.com/MikeOrtiz/TouchImageView" rel="nofollow">https://github.com/MikeOrtiz/TouchImageView</a></p>
  
  <p>But I got an error :</p>
  
  <pre><code>02-05 12:46:05.508: E/AndroidRuntime(21710): FATAL EXCEPTION: main
  02-05 12:46:05.508: E/AndroidRuntime(21710): Process: com.km.parkit, PID: 21710
  02-05 12:46:05.508: E/AndroidRuntime(21710): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.km.parkit/com.km.parkit.MainMap}: java.lang.ClassCastException: android.widget.ImageView cannot be cast to com.km.parkit.TouchImageView
  02-05 12:46:05.508: E/AndroidRuntime(21710):    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2298)
  02-05 12:46:05.508: E/AndroidRuntime(21710):    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2360)
  02-05 12:46:05.508: E/AndroidRuntime(21710):    at android.app.ActivityThread.access$800(ActivityThread.java:144)
  02-05 12:46:05.508: E/AndroidRuntime(21710):    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1278)
  02-05 12:46:05.508: E/AndroidRuntime(21710):    at android.os.Handler.dispatchMessage(Handler.java:102)
  02-05 12:46:05.508: E/AndroidRuntime(21710):    at android.os.Looper.loop(Looper.java:135)
  02-05 12:46:05.508: E/AndroidRuntime(21710):    at android.app.ActivityThread.main(ActivityThread.java:5221)
  02-05 12:46:05.508: E/AndroidRuntime(21710):    at java.lang.reflect.Method.invoke(Native Method)
  02-05 12:46:05.508: E/AndroidRuntime(21710):    at java.lang.reflect.Method.invoke(Method.java:372)
  02-05 12:46:05.508: E/AndroidRuntime(21710):    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899)
  02-05 12:46:05.508: E/AndroidRuntime(21710):    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694)
  02-05 12:46:05.508: E/AndroidRuntime(21710): Caused by: java.lang.ClassCastException: android.widget.ImageView cannot be cast to com.km.parkit.TouchImageView
  02-05 12:46:05.508: E/AndroidRuntime(21710):    at com.km.parkit.MainMap.onCreate(MainMap.java:16)
  02-05 12:46:05.508: E/AndroidRuntime(21710):    at android.app.Activity.performCreate(Activity.java:5933)
  02-05 12:46:05.508: E/AndroidRuntime(21710):    at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1105)
  02-05 12:46:05.508: E/AndroidRuntime(21710):    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2251)
  </code></pre>
  
  <p>Is that because I had wrongly used the class?</p>
  
  <p>I used it in another class named MainMap :</p>
  
  <pre><code>TouchImageView image;
  image = (TouchImageView) findViewById(R.id.overview);
  </code></pre>