Skip to content

Instantly share code, notes, and snippets.

@billdawson
Created May 4, 2010 21:14
Show Gist options
  • Save billdawson/d116232ef3ba72a4d26e to your computer and use it in GitHub Desktop.
Save billdawson/d116232ef3ba72a4d26e to your computer and use it in GitHub Desktop.
Titanium.UI.setBackgroundColor('#000');
var tabGroup = Titanium.UI.createTabGroup();
var win1 = Titanium.UI.createWindow({
tabBarHidden: true,
title:'Tab 1',
backgroundColor:'#fff'
});
var l = Ti.UI.createLabel({
top: 1,
left: 1,
width: 200,
height: 50,
text: 'This TextField should not be editable:'
});
win1.add(l);
var tfNotEditable = Ti.UI.createTextField({
top: 55,
left: 1,
width: 200,
height: 50,
editable: false,
value: 'default text here',
borderColor: 'black'
});
win1.add(tfNotEditable);
var tab1 = Titanium.UI.createTab({
icon:'KS_nav_views.png',
title:'Tab 1',
window:win1
});
tabGroup.addTab(tab1);
tabGroup.open();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment