I created the Mobile kit. I did it separately because it was supposed to mimic how UINavigationController, UIViewController, and UITabController work on iOS (which I'm more familiar with than Android). But there is nothing specific in that kit (that I remember) which ties it to a mobile device. That's opposed to Storage kit, which is dependent on AIR to provide a file system on the SWF platform.
I think once we look into refactoring the packages, a lot of Mobile could be moved out. ‹peter On 11/2/17, 8:36 AM, "Harbs" <[email protected]> wrote: >The classes probably do not belong necessarily in mobile. > >Here¹s what I¹m using: >css: > > js|TabbedViewManager { > IBeadView: >ClassReference("org.apache.royale.mobile.beads.TopTabbedViewManagerView"); > } > >mxml: > <js:TabbedViewManager id="navController" x="109" y="96" width="682" >height="360" viewChanged="tabbedViewChanged(event)"> > <js:views> > <js:TitleView title="Suites"> > <!-- Suites Data Grid --> > <ex:DataGrid id="suiteDG" x="109" y="96" > width="682" height="360" > > dataProvider="{suiteProvider}" > > change="handleExtensionDGChange(event)" rowHeight="30"> > <js:beads> > <js:DataGridPercentageView /> > </js:beads> > <js:columns> > <js:DataGridColumn > label="Product" dataField="product" >columnWidth="30" >itemRenderer="com.intools.dashboard.renderers.CenteredStringRenderer"/> > <js:DataGridColumn > label="Status" columnWidth="33" >itemRenderer="com.intools.dashboard.renderers.StatusRenderer"/> > <js:DataGridColumn > label="Version" dataField="iVersion" >columnWidth="12" >itemRenderer="com.intools.dashboard.renderers.CenteredStringRenderer"/> > <js:DataGridColumn > label="Latest Version" columnWidth="25" >itemRenderer="com.intools.dashboard.renderers.VersionUpdater"/> > </js:columns> > </ex:DataGrid> > </js:TitleView> > <js:TitleView title="Plugins"> > <!-- Suites Data Grid --> > <ex:DataGrid id="pluginDG" > > dataProvider="{pluginProvider}" > > change="handleExtensionDGChange(event)" rowHeight="30"> > <js:beads> > <js:DataGridPercentageView /> > </js:beads> > <js:columns> > <js:DataGridColumn > label="Product" dataField="product" >columnWidth="30" >itemRenderer="com.intools.dashboard.renderers.CenteredStringRenderer"/> > <js:DataGridColumn > label="Status" columnWidth="33" >itemRenderer="com.intools.dashboard.renderers.StatusRenderer"/> > <js:DataGridColumn > label="Version" dataField="iVersion" >columnWidth="12" >itemRenderer="com.intools.dashboard.renderers.CenteredStringRenderer"/> > <js:DataGridColumn > label="Latest Version" columnWidth="25" >itemRenderer="com.intools.dashboard.renderers.VersionUpdater"/> > </js:columns> > </ex:DataGrid> > </js:TitleView> > </js:views> > >Things that need improvement: >1. The tabs take up the full width. >2. The tabs are simple buttons and the TabBar is hard-coded in. It really >needs to be toggle buttons which have a selected state. > >Otherwise it works pretty well. > >Harbs > >> On Nov 2, 2017, at 2:29 PM, Yishay Weiss <[email protected]> wrote: >> >> >> >> For now, we would like to have an Apache Royale "ViewStack" equivalent >>but we do not know where to start. >> What do you think the parent component should be ? Could you give to us >>some cues ? >> >> I think Harbs got StackedViewManager [1] to work for him in one of his >>apps. It¹s in the mobile package but I¹m not sure there¹s a reason not >>to use it on desktop. >> [1] >>https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.c >>om%2Fapache%2Froyale-asjs%2Fsearch%3Fp%3D1%26q%3DStackedViewManager%26typ >>e%3D%26utf8%3D%25E2%259C%2593&data=02%7C01%7C%7Cce7a50ce362b4799aca808d52 >>1ee6a48%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636452230225743860&s >>data=72MhSsPyVCSCXur8nnNjtCW9zAQn819lY3ycO3%2FWEeM%3D&reserved=0 >> >
