Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用Conductor和 Mosby 在 android 应用程序中实现 MVP-MVC 架构。 我需要做的是从路由器的后端移除一个控制器,onBackPressed这样控制器就不再回到前面。
onBackPressed
如果要删除当前控制器,请像 @sockeqwe 所说的那样:调用router.popCurrentController()。
router.popCurrentController()
如果你想从 backstack 中删除一些特定的控制器,你可以尝试调用router.popController(your_controller).
router.popController(your_controller)