I have (alloy’ed) Android application with 2 windows win0, win1, and want to «move» between them using simple navigation side menu hooked to actionBar of each window. Menu itself handled by app-level navigation object. I.e. in navigation object I do
this._switchPage = function( newIdx ) { self._pages[newIdx].open(); // opens the window user navigates to self._pages[self._pageIdx].close; //close previous window self._pageIdx = newIdx; // store new position of navigation };Each instance of window has (simplified for this question) the same layout: index.xml:
<Alloy> <Window id=… > <View id=«sideMenu» … / > </Window> </Alloy>Windows has the same layout. They are not modal. Each #sideMenu view has zIndex="1" (otherwise #sideMenu won't show at win0).
Each Menu element created as Label (zIndex=1) and wrapped into view (zIndex=1). This menu item then gets attached to parent view #sideMenu for each controller at app init-time from index controller.
Menu works as supposed at win0 (index controller). However, there’s no menu items in win1 at all. Parent view (sideMenu) is shown, however there is no menu.
What do I do wrong, any ideas to check?