I am not able to add a submenu to the drawer.
I have added the following widget com.rexel.appnavigatortable to the drawer:
widget.xml: <Alloy> <ScrollView id="imagetable" width="100%" top="80" touchEnabled="true" scrollable="true" disableBounce="true" layout="vertical"> View onClick="startHome"> <Label id ="homelabel" class="btnlabel" text="Home" color="white"/> <Button id="homebutton" class="button" icon="fa-home"></Button> <Widget id="fa" src="com.mattmcfarland.fontawesome"/> </View>
<View onClick="startAccount">
<Label id="accountlabel" class="btnlabel" text="Account" color="white"/>
<Button id="accountbutton" class="button" icon="fa-user"></Button>
<Widget id="fa" src="com.mattmcfarland.fontawesome"/>
</View>
<View onClick="startFindBranch">
<Label id="findbranchlabel" class="btnlabel" text="Find Branch" color="white"/>
<Button id="findbranchbutton" class="button" icon="fa-map-marker"></Button>
<Widget id="fa" src="com.mattmcfarland.fontawesome"/>
</View>
</ScrollView> </Alloy>
I want to open a sub view on clicking on home button on the drawer.
<Alloy> <Widget id="drawer" src="nl.fokkezb.drawer"> <NavigationWindow id="mainview" platform="ios" role="centerWindow" fullscreen='true'> <Window fullscreen="true"></Window> </NavigationWindow> <View id="mainview" platform="android" role="centerWindow" zIndex="1" fullscreen='true'></View> <Window id="leftwin" module="xp.ui" role="leftWindow" theme="Theme.NoActionBar"> <View id="weatherview" left="2" right="2" top="2" height="80"> <ImageView id="weatherimgview" height="30" width="30" top="35" left="16" backgroundColor="transparent"></ImageView> <Label id="weathertemplabel" top="36" left="48" right="2" textAlign="left"></Label> <Label id="weatherdatelabel" top="5" left="5" right="5" textAlign="center"></Label> <Label id="weathertimelabel" top="15" left="5" right="5" textAlign="center"></Label> <Label id="weatherlocationlabel" top="64" left="5" right="5" textAlign="center"></Label> </View> <Widget src="com.rexel.appnavigatortable"></Widget> </Window> </Widget> </Alloy>