android – ViewPager with Navigation architecture components-ThrowExceptions

Exception or error:

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.

How to solve:

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

Leave a Reply

Your email address will not be published. Required fields are marked *