简体   繁体   中英

BackStack android Fragment

How to popBackStack fragments by tag like this:

  • [c]
  • [b]
  • [a]

If findByTag [b] is exist then clear all elements of stack which are above of current fragment.

  • [b]
  • [a]

else If findByTag [d] does not exist then

  • [d]
  • [c]
  • [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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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