@titanium/turbo
Version:
<p align="center"> <img src="https://cdn.secure-api.org/images/turbo-title_400.png" /><br> <a href="https://www.npmjs.com/package/@titanium/turbo"> <img src="https://img.shields.io/npm/v/@titanium/turbo.png" /> </a> </p>
15 lines (14 loc) • 591 B
text/xml
<Alloy>
<Window>
<!-- On Android 3.0 devices and later, this will add items to the action bar.
On older Android devices with a physical menu button, it will add items to the
menu that appears when the menu button is pressed. -->
<Menu>
<MenuItem title="option 1" icon="/ic_menu_help.png" onClick="doClick"/>
<MenuItem title="option 2" icon="/ic_menu_home.png" onClick="openWin2"/>
</Menu>
<!-- Build the rest of your UI as usual -->
<Label>Window 1</Label>
<Label bottom="20dp" if=Alloy.Globals.hasMenuButton>Press the menu button</Label>
</Window>
</Alloy>