I have designed an application with multiple pages using Erel's sliding panels demonstration.
In one of the panel I have a rotary button (control knob) that the code is handling through Activity.ACTION_MOVE.
I would like to implement the stdViewPager because it is much smoother and gives a better user experience.
I have modified my code for the stdPageViewer, very simple to use thanks. But I am now facing a problem between the actions on the knob and the pages swipe.
If I start the rotation on my object at 3 o'clock or 9 o'clock (vertically) my control works well.
If I start at 12 o'clock or 6 o'clock (horizontally), the gesture is considered as page swipe, as I can understand.
Would it be possible to prevent page swipe gesture above a defined area ?
I made a test application representing only the knob and the viewpager.
I then modified it so that the knob is included inside a panel, and the touch function is related to this sub panel.
I do not see any difference, swiping horizontally change page instead of changing the volume.
I attach both versions to show the behavior. I have placed a label with a numeric value, rotating the know changes the value.
Is there any way we can set a high priority of the touch event on the panel than on the viewpager ?