Javascript SDK! • Allows you build Native Apps for iOS (iPhone, iPod Touch, iPad), Android (Phone and Tablet), Mobile Web, Blackberry 10 (beta), soon for Windows 8 and Tizen! • Free/Open Source!! • It’s Native, NOT web app!
users don't like how your App LOOKS ! ! they will delete it!! h"p://www.itexico.com/blog/bid/91499/Why-‐your-‐Mobile-‐App-‐s-‐UX-‐UI-‐must-‐be-‐Awesome
<View id="rowIcon" backgroundImage="/happyface.png"></View> <Label id="rowTitle">Why did the turkey cross the road?</Label> <View id="rowTypeContainer"> <Label id="rowTypeCapRon">Type:</Label> <Label id="rowTypeData">Joke</Label> </View> </View> </TableViewRow> Go to your index.xml file and change the placeholder data To add more rows, copy and paste this code block!
the template for the second page. I’ll leave that to you TIPS: 1. In Studio, right-‐click in the files area, select New > Alloy Controller 2. You could move ALL your TSS to “app.tss”. This is a global file that holds styling that will be shared by all screens
<TableView id="mainlist" onClick="onTableClick"> <TableViewRow id="listrow" ezawin="turkeycrossing"> The index.xml file needs to know what to do when you click on the rows The name of a previously created XML file
var ezR=require('ezR'); funcRon onTableClick(e){ ezR.openWinFromRow(e.rowData); } $.index.open(); The index.js needs to define the acRon for onTableClick Remember: every screen or controller is a combinaRon of 3 files: XML, TSS, JS