I use android compatibility package's ViewPager widget (with android homescreen like multiple screens support via horizontal swipe left/ right gesture), and a GridView in one of such screen. The gridview further contains fragments as its items.
I would like to be able to have swipe up/ down gesture support on fragment (app's feature to change its content), and the singleClick/ LongClickItem gesture support by GridView (to select the item, or to start drag & drop on long click), and the default ViewPager screens switch via swipe left/ right gesture. But I couldn't find a way of handling onTouchEvent() by all these 3 hierarchical viewgroup/ view items. I implement onTouchEvent() in fragments views to detect swipe U/D gesture and returns true in that function on receiving MotionEvent.Down event, but I have to disallow its parent item (ViewParent), GridView, to stop intercepting the event as otherwise my fragment doesn't receive any touch event callback. And if disallow this intercept, then the ViewPager's horizontal swipe up/ down gesture also stops working. Could someone suggest me a solution to fulfill my requirement to handle the appropriate gestures/ events by all the 3 items? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

