1

I have Implemented both horizontal and vertical view pager which work Horizontal (swipe side ways left and right) only or Vertical (swipe Up and down) only.

But I need to catch both the swipe inputs, if swiped either way the view pager should work. in single direction.

i.e : if swiped up and down the Pages should go up and down, if swiped left and right also it should go up and down only.

EDIT: Can I override any methods of view pager to get both the swipe inputs.

Praneeth
  • 1,260
  • 17
  • 35

1 Answers1

0

first of all you have to detect swipe detection.

check this link

And then implement your view pager based on swipe.

Community
  • 1
  • 1
Developine
  • 10,367
  • 7
  • 36
  • 39