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

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).

Read more here:

Content Attribution

This content was originally published by bdon at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: