简体   繁体   English

BackStack android片段

[英]BackStack android Fragment

How to popBackStack fragments by tag like this: 如何通过标签像这样弹出BackStack片段:

  • [c] [C]
  • [b] 并[b]
  • [a] [一种]

If findByTag [b] is exist then clear all elements of stack which are above of current fragment. 如果findByTag [b]存在,则清除堆栈中当前片段上方的所有元素。

  • [b] 并[b]
  • [a] [一种]

else If findByTag [d] does not exist then 否则,如果findByTag [d]不存在,则

  • [d] 并[d]
  • [c] [C]
  • [b] 并[b]
  • [a] [一种]

I can only guess what you question is. 我只能猜测您的问题是什么。 Here is a link to Google's Tasks and Back Stack guide for you that might help. 这是指向Google的“ 任务和后退堆栈”指南的链接,可能会对您有所帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM