I am new to Android. I have a recyclerview with LinearLayoutmanager set to enable horizontal scroll. I would like user not scroll beyond certain point which can change dynamically.
I will give a example to describe it. Lets say there is a tutorial app which presents user 5 questions at the end of chapter. Lets say those 5 questions are presented in recycler view.
User should not be able to scroll beyond first un-completed question. So if user has completed first 2 questions then recyclerview should not allow scrolling beyond third question although user can scroll back to first & second completed question.