November 17th, 2013, 07:58 AM
Unable to make swipe work for GLSurfaceView
I am working on a simple game for android where user would make a ball move on basis of swipe actions. Instead of using xml layouts as resource for setContentView in onCreate() method,I am using GLSurfaceView as I am using OpenGL for rendering. So I have also implemented a class for implementing GestureDetector.OnGestureListener. Strangely, when I supply GLSurfaceView instance to setContentView, methods in OnGestureListener are not getting called. But if I supply xml layout(R.layout.....) then there is no problem and appropriate methods in OnGestureListener are called.
Please advise where am I doing wrong.