Block touch events on specific part of screen using when using viewpager

  android, android-viewpager2, java

I am creating a social media app and i want it such that i can swipe up to open one activity and swipe down to open another activity. I have gotten that working using ViewPager2(vertical). However, i ran into a problem of the viewpager intercepting with a recyclerview in one of my activities and i wanted to know if it were possible to block touch events from in the space that is covered by the recycler view(vertical).

Source: Android Questions