I want to have different tabs, where you can swipe through like in the android market. Each tab should use one fragment and use one method for it.
This is my Fragmen
With the release of ViewPager2 1.0.0, the FragmentPagerAdapter and FragmentStatePagerAdapter classes for interacting with ViewPager have been deprecated.
ViewPager2 is an improved version of the ViewPager library that offers enhanced functionality and addresses common difficulties with using ViewPager.
ViewPager2ViewPager2ViewPager, read this page to learn
more about migrating to ViewPager2.