I want to use swipe next function in my app

I want to use swipe next function in my app. I use this extension
aryan.gupta.GesturesDetector.aix (10.5 KB)
It work

But when i add multiple horizontal and vertical layout inside the main layout. It stop working. Is there any other way to do same function.
Actually i am making a local calander app. I put a button for next month and a button for previous month. i want swipe next option.

[Uploading: Calendar.apk…](Download Calendar.apk | LimeWire)

Hi dear,

Before even getting into this extension, since I see you are just using a simple left and right swipe, did you know you can use a ViewPager and hide the tabs to get a horizontal set of images?