ViewPager with Navigation architecture components [duplicate]

Are there any uses for navigation with the viewpager? I can not find information about this and I do not understand how this can be done.

I have an simple two fragments which is need to put inside viewpager and if its possible via navigation.


Solution 1:

As per this issue:

Navigation focuses on elements that affect the back stack and tabs do not affect the back stack - you should continue to manage tabs with a ViewPager and TabLayout