The title does my issue no justice but here we go. I followed a tutorial and added a swipe action to an activity inside my app. Now this activity is nested inside a TabHost. However, when the application runs, the swipe action is not working when inside the TabHost, but it does work when the activity is individually called.
If you need the code I will post it, but I would rather not for business reasons.
Ok I figured it out. Here is the code:
}
What happened was in the
onTouchEvent(MotionEvent event)I had to remove theif()statement andelse()statement and turn thegestureDetector.onTouchEvent(event);statement toreturn false;
return true;I hope this helps someone else. I am continuing work to get a constant fluid motion so that the views follow the users gesture.