In ViewPager it was possible to subclass it and override onTouchEvent to build such functionality. But since ViewPager2 is a final class this is not possible.
can you please recommend a way of doing this with ViewPager2 or provide an API within ViewPager2 so as to achieve this in a cleaner way.
This is critical for us and currently preventing the switch.
Description
In
ViewPager
it was possible to subclass it and overrideonTouchEvent
to build such functionality. But sinceViewPager2
is a final class this is not possible.can you please recommend a way of doing this with
ViewPager2
or provide an API withinViewPager2
so as to achieve this in a cleaner way.This is critical for us and currently preventing the switch.