Skip to content

Instantly share code, notes, and snippets.

@kwhinnery
Created May 11, 2011 18:05
Show Gist options
  • Select an option

  • Save kwhinnery/966964 to your computer and use it in GitHub Desktop.

Select an option

Save kwhinnery/966964 to your computer and use it in GitHub Desktop.
var container = Ti.UI.createView({
layout:'vertical',
top:5, left:5, right:5
});
var bar = Ti.UI.createView({
top:5,
left:0,
width:'75%',
height:40,
backgroundColor:'blue'
});
bar.add(Ti.UI.createLabel({
text:'Some label',
height:'auto',
width:'auto',
left:3
}));
bar.add(Ti.UI.createLabel({
text:'45%',
height:'auto',
width:'auto',
right:3
}));
container.add(bar);
Ti.UI.currentWindow.add(container);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment