2

OK lets make this basic, I have three pages(viewgroups) which I can scroll through like the home screen. On one of the pages is a gallery. Now the problem is any swipes on the gallery case the pages to change to. Is it possible to restrict trouch gestures to a certain part of the viewgroup?

Any help appreciated. Thanks!

Kiril Kirov
  • 37,467
  • 22
  • 115
  • 187
Koded101
  • 375
  • 4
  • 11

1 Answers1

1

I had the same problem, only that I had buttons in a table layout. Overriding the viewgroup's dispatchTouchEvent() made it easy to switch between pages. The problem is that the button's do not receive clicks anymore.

Levente Kürti
  • 1,005
  • 1
  • 12
  • 23
  • Thanks for your reply, So i guess I should override dispatchtouchevent() and redirect the motionevents to the gallery only not the viewgroup. – Koded101 May 23 '11 at 09:37