-
-
Save anirudhnagesh/9eb2ba10f35a7ab155a3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var win = Ti.UI.createWindow({title: 'Title'}); | |
var tableview = Ti.UI.createTableView({}); | |
// This work around is required to get a similar appearance between android and iOS | |
//var leftMargin = '58dp'; | |
//if(Ti.Platform.name === 'android') { leftMargin = '10dp'; } | |
var label = Ti.UI.createLabel({ | |
text: 'A text label', | |
//color: '#fff', | |
font: { fontSize : '16dp' }, | |
textAlign: 'left', | |
top: '10dp', | |
left: 0, | |
}); | |
var row = Ti.UI.createTableViewRow({ className: 'datarow', height: '77dp', backgroundImage: 'KS_nav_ui.png', }); | |
row.add(label); | |
var data = []; | |
data.push(row); | |
tableview.setData(data); | |
win.add(tableview); | |
win.open() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment