Skip to content

Instantly share code, notes, and snippets.

@billdawson
Created May 17, 2010 16:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save billdawson/403933 to your computer and use it in GitHub Desktop.
Save billdawson/403933 to your computer and use it in GitHub Desktop.
var win = Ti.UI.currentWindow;
var view = Titanium.UI.createView({
backgroundColor:'red',
width:200,
height:200,
top: 0,
left: 0
});
view.addEventListener('click', function(e) {
Ti.API.info('clickety click');
});
var tf = Ti.UI.createTextField({
width: 100,
height: 80,
top: 5,
left: 5
});
view.add(tf);
win.add(view);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment