如何在使用选项卡时添加导航架构

How to add Navigation Architecture while using tabs

我有一个实现底部导航布局的应用程序。它包含 4 个选项卡。第一个选项卡是 NavHost。此选项卡有一个包含 2 个选项卡(片段)的内部视图寻呼机。 但是,如何在导航图上连接内部视图寻呼机?

下面是应用程序本身的图像:

以下

如果您使用的是 ViewPager,您将继续使用 ViewPager,按照 this issue 传递它 getChildFragmentManager() - 您不会将 Fragments 放入导航中的 ViewPager图.