As we know, TaskStackBuilder
is used for navigating between multiple activities sequentially.
I'm looking for a similar concept for navigating between multiple fragments via Navigation Component
. for example when I want to navigate from A
to C
but when pop C
, B
show on A
because B
is on top of the back stack.
what happens:
A ------> C
what actually is in the back stack.
[ A, B, C ]
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…