have view pager 2 and tablayout inside it. I have other views too but the question is not about them.
What basically i am trying to do is when a user scrolls, i wanna pin tablayout to top. The approach is just like some social medias use for their profile screen. For instance, TikTok, Instagram, Thread ...etc.
When i use NestedScrollView instead of view pager2 to check the scroll behavior, it does work perfectly but with view pager 2, it does loose the state of motion. I don't want it to loose end state of motion until the view inflated within view pager 2 is scrolled to end.
Is there any alternative combination ?
Стикер
Обсуждают сегодня