One way to implement swipe in Tabs of TabLayout is using viewpager. Using navigation architecture component for navigation it is not clear how to use viewpager. If we are not using viewpager, what is the recommended way to implement swipe left or right in tabs of TabLayout.
How to add swipe left or right in Tabs of tab layout when implemented using Navigation Architecture component
Asked Answered
may I know why not viewPager? –
Lole
@Akash it is not clear how to use viewpager with Navigation library many people are searching for solution for this #52540803 –
Saprogenic
As ViewPager Fragments are not Top-Level-Destinations (in my case), I use ViewPager with a normal adapter, without any navigation component... –
Subtrahend
@Subtrahend your's is an isolated case as you are not using navigation component. it will limit you to reuse fragment elsewhere in app. We need some right approach or solution with fragments being part of navigation component. –
Saprogenic
linking another related question #52630767 –
Saprogenic
© 2022 - 2024 — McMap. All rights reserved.