title: Using a gesture overlay view in android
body: <p>So I'm trying to use a gesture overlay view in android to make a "swipe" action. So that when the user "swipes" left it executes certain code and when they swipe right it executes other code. I tried declairing the gestureoverlay  like this:</p>
  
  <pre><code>GestureOverlayView gest = (GestureOverlayView) findViewById(R.id.hatgest);
  </code></pre>
  
  <p>But then i don't know where to go from there and i cant find anything helpful in the dev guide or online. For a button i would normally use an "onclicklistener" how would i do this with the gesture overlay? Does anyone have any examples of code that i can reference? Thanks</p>