Skip to content

Instantly share code, notes, and snippets.

@kwhinnery
Created June 10, 2010 14:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save kwhinnery/433113 to your computer and use it in GitHub Desktop.
Save kwhinnery/433113 to your computer and use it in GitHub Desktop.
var win = Titanium.UI.createWindow({
backgroundColor:"#fff"
});
var body = Ti.UI.createView({height:'auto',layout:'vertical'});
var Label1 = Ti.UI.createLabel({
color:'green',
top:10,
height:'auto',
text:'Lorem ipsum dolor sit amet, consetetur sadipscing \
elitr, sed diam nonumy eirmod \
tempor invidunt ut labore et dolore \
magna aliquyam erat, \
sed diam voluptua'});
body.add(Label1);
var Label2 = Ti.UI.createLabel({
color:'red',
top:10,
height:'auto',
text:'At vero eos et accusam et justo duo \
dolores et ea rebum. Stet clita kasd \
gubergren, no sea takimata sanctus est \
Lorem ipsum dolor sit amet'});
body.add(Label2);
win.add(body);
win.open();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment