title: How to use Swipe Gestures on Android Fragments (with Tabs)
body: <p>I saw an excellent guide in using gestures for Android app's.... over <a href="https://stackoverflow.com/questions/937313/android-basic-gesture-detection">here</a>.</p>
  
  <p>However, I could not adapt it to my situation which is bit more complicated.  I have a FragmentActivity with two inner Fragment classes (also using support library, tabs, and viewpager).</p>
  
  <p>There are two tabs (one for each inner Fragment class).  When you are on Tab One and swipe right to left, using Viewpager, it swipes to the right tab--that works good.  <em>What I want to add is this</em>: <strong>If you are on tab one, and swipe from left-to-right, it simply finish()'s the activity</strong> and takes the user back to a ListActivitry where they came from.</p>
  
  <p>I am not sure if the above linked question refers to this situation, but I sure couldn't get any of the suggestions to work.  It seems I need to call this in the left tab fragment, and not the "parent" FragmentActivity? Can someone guide me on this? </p>