title: How to add GestureDetector and ScaleGestureDetector on a ImageView with setOnTouchListener
body: <p>In my MainActivity i have:</p>
  <pre><code>class MainActivity : AppCompatActivity() {
      lateinit var imageView: ImageView
  
      override fun onCreate(savedInstanceState: Bundle?) {
          super.onCreate(savedInstanceState)
  
          setContentView(R.layout.activity_main)
  
          val imageViewGestureDetector = GestureDetector( this, object : GestureDetector.SimpleOnGestureListener() {
              override fun onDoubleTap(e: MotionEvent?): Boolean {
                  return true
              }
  
              override fun onFling(
                  e1: MotionEvent?,
                  e2: MotionEvent?,
                  velocityX: Float,
                  velocityY: Float
              ): Boolean {
                  Log.i(&quot;MainActivity&quot;, &quot;Fling!&quot;)
                  return super.onFling(e1, e2, velocityX, velocityY)
              }
          })
  
          imageView.setOnTouchListener { _, event -&gt; imageViewGestureDetector.onTouchEvent(event) }
      }
  
  }
  </code></pre>
  <p>Now I thought it might be nice to define a behaviour for <code>onScale</code> but I noticed Scale Gestures are detected by the <code>ScaleGestureDetector</code>.</p>
  <p>I'd rather not sub-class the ImageView and <code>override fun onTouchEvent()</code> - or should I? That's what all of the solutions in the net seem to suggest. I'd assume there might be a convenient way to combine these common gestures in one view.</p>