title: How to implement a "Two Finger Drag" gesture on Android?
body: <p>I am new to Android development and am working on an accessibility research project for blind people (Jelly Bean API level 17 project). I have been experimenting with some gestures and the <strong>Two-Finger-Drag</strong> gesture has been really tough to implement. The following image captures what I actually require quite well. </p>
  
  <p><img src="https://i.stack.imgur.com/unEoj.png" alt="drag gesture"></p>
  
  <p>I want the blind user to drag two fingers across horizontally (anywhere on the screen) and he would obtain an Audio output of the text he/she typed in the EditText. Also according to the distance the two fingers travel while dragging, we output each word separately.(Example below)  </p>
  
  <blockquote>
    <p>Example: If the user types <em>"Today is a good day"</em> and drags his finger
    (x value) by (say) 10 units to Left we output <em>"good day"</em> but if he
    drags it say 20 units to Left we output <em>"a good day"</em>,  for 30 units
    to Left <em>"is a good day"</em> etc etc.</p>
  </blockquote>
  
  <p>I stumbled across which seems to detect two-finger touch:</p>
  
  <pre><code>TouchEvent(MotionEvent event)
  </code></pre>
  
  <p>Also this tutorial on <a href="http://android-er.blogspot.in/2011/12/detect-multi-touch-for-10-pointers.html" rel="noreferrer">detecting multiple touches</a> seems promising, but I need it to work for <strong>touch</strong> and <strong>drag</strong> which I am not sure can be implemented like this.</p>
  
  <p>Any new suggestions to implement this or pointers to tutorials that can help would be great!</p>
  
  <p>Thanks in advance,
  Adit</p>