[View]  [Edit]  [Lock]  [References]  [Attachments]  [History]  [Home]  [Changes]  [Search]  [Help] 

[node8-android] UI framework in short

In MainActivity>>defaultNavMenuTitles navigator menu options are defined. These strings match AndroidCoordinator class>>id, that is: a navigator menu option defines which will be the rootCoordinator -of a possible stack of coordinators. Each coordinator instance holds a fragment that will be stacked in Android backstack. Not only fragments are stacked, also coordinators are stacked, and this stack is held by anAndroidApplicationThread (there will be anAndroidApplicationThread for each navigator option menu). Why are coordinator also stacked? because if coordinator menu option changes we want all the stacked coordinators (and fragments -each coordinator holds its fragment) to be restored. Therefore when a option menu changes the backstack is emptied and replaced with all the fragments of the stacked coordinators.