-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tablet layouts #8
Comments
An app designed for mobile phones and tablets often have very different navigational flows. In GMail for example, tapping an email from the email list on a phone navigates to a different screen, while doing the same thing on a tablet opens the email on the same screen. It is only natural to design these things as separate navigators, and create Scenes specific to phone and tablet layouts. Scenes still can be reused for this, see #10. In our GMail example, we could have an |
This only leaves determining what navigator to actually use. Depending on the specifics (orientation, screen width, etc) you can implement a |
Actually, if you also consider freeform windows on Chrome OS that allow resizing, then having a custom Navigator isn't necessarily the right way, because now you have to swap out phone navigator and tablet navigator at runtime based on available width. Although in that scenario, the common case of having a separate container, one as Either way, we have the same navigation state in both scenarios, but we can show multiple views at a time instead of just one. |
Ooh, nice catch! Switching from multi-pane windows to single pane windows is indeed something to think about. |
Often a tablet layout is two ui panes in one screen.
Android provides resource folders for this, how would this work with navigators?
The text was updated successfully, but these errors were encountered: