lukaspili / Mortar-Flow-Dagger2-demo

Android demo application with Mortar / Flow / Dagger2. Up to date with latest versions.
MIT License
53 stars 10 forks source link

subflow and drawer/toolbar #3

Open teachmeit opened 9 years ago

teachmeit commented 9 years ago

This code looks very clean! Is there a way to start a subflow inside the main flow? For example, when detect there is permission issue, start a "login" flow to sign in/sign up. Also, is there any example/suggestion to integrate navigation draw and toolbar into this?

lukaspili commented 9 years ago

I made one, but with Mortar/Architect and not with Mortar/Flow.
Architect is a library I made that is a replacement of Flow, you can find more about it and the motivation behind in its readme: https://github.com/lukaspili/Mortar-architect

You can then checkout the following ViewPresenter, that creates a sub-navigation: https://github.com/lukaspili/Mortar-architect/blob/master/app/src/main/java/com/mortarnav/presenter/SubnavPresenter.java

And also this project, that showcase how to use DrawerLayout with sub view presenters: https://github.com/lukaspili/Mortar-architect-map-demo