title: Android - swipe left|right . gesture detection
body: <p>was trying to add this "gesture" function to my first program, and almost every search I did came to this thread:</p>
  
  <p><a href="https://stackoverflow.com/questions/937313/android-basic-gesture-detection">Fling gesture detection on grid layout</a></p>
  
  <p>I was able to get it working.. but in my case, I am not sure if it's 100 % correct.</p>
  
  <p>In my layout, I have 3 horizontal linearLayouts, each one has 5 buttons.. so it's 3 columns of 5 buttons.. according to the thread I had to:</p>
  
  <p>"Attach your gesture listener to all the views you add to the main layout;"</p>
  
  <p>that means for all the 15 buttons:</p>
  
  <p>"button.setOnTouchListener(gestureListener);"</p>
  
  <p>Couldn't I just say that the LinearLayouts with the buttons are the ones looking out for the swipe gestures? Or because they are "hidden" on the back of the buttons, this can't be done?</p>
  
  <p>Because I have another layout I want to implement with this, and it has even more buttons.. </p>
  
  <p>So .. just looking for a simpler way of detecting on my screen for swipe right | left .. if it does exists.. </p>
  
  <p>Thank you in advance</p>