Add (not replace) fragment with navigation architecture component

后端 未结 6 1880
失恋的感觉
失恋的感觉 2021-01-31 02:14

I have an activity with a product list fragment and many other fragments and I am trying to use architecture component navigation controller.

The problem is: it replaces

6条回答
  •  无人及你
    2021-01-31 02:25

    Android navigation component just replace but you want to add fragment instead of replace like dialog you can use this but need to min. "Version 2.1.0" for navigation component.

    Solution

    and you can see "Dialog destinations"

提交回复
热议问题