I need a ViewPager
that enables to user to swipe images. But on a click on the images, a new activity has to start with another, bigger viewpager that contains the same images.
How can i implement a click listener while still keeping the swipe on the viewpager
?
It should be pretty straight-forward, and has nothing to do with your ViewPager. Just add onClickListener to your ImageView:
or add the onClick in XML: