MeasureChina/Ti.DrawerLayout

View Hirachy

nubu opened this issue · 5 comments

nubu commented

Hey guys,

i am wondering how to open a new (window?) inside the drawer. Like the Centerview shows me a list and then (the detailpage) is a new Window (view?).

The goal is to have the "backarrow" on the actionbar and therefore easy handle going back to the previous view/window.

Is this possible ? Found nothing regarding this.

win.open() does this by default.

Up ( / back-) Button can be added with actionbar.displayHomeAsUp = true;

nubu commented

Hey thanks for the response - There isn't antoher way to achieve this with adding the drawer to each new window or?

You can't have both, drawer and Up button functionality. You can either create another drawer on the new window or replace the centerView with a new view (instead of opening a new window).

For your use-case I would not add a drawer on your detail page. For example, have a look at the Play Store App:

  • ListView (List of apps, with drawer)
  • select app to open detailpage
  • DetailView (no drawer)

So, the user is forced to close the detail page to access the drawer navigation. Otherwise it would be confusing because you wouldn't know on which navigation level you are (if the top-level-navigation appears on every window). Does this make sense?

Here's the official explaination: http://developer.android.com/design/patterns/app-structure.html

nubu commented

Hmm yeah - that seems to be right. There is a label telling the user he/she is on "List", "Detail" a "Formular" or whatever view - but you'are right a real indicator is missing.

thanks for the thoughts (i am not an android user)

@nubu I am sorry but I was not really telling the truth here. Because I was not aware of this navigation pattern but it is described in Android's design guide the way you want to achieve it. They write that you can make the drawer accessible from deeper levels of the navigation hierarchy. So in a detail view you would indeed have both, up and drawer. Sorry for the confusion!