Skip to content

Instantly share code, notes, and snippets.

@flrent
Last active December 17, 2015 16:49
Show Gist options
  • Save flrent/5641869 to your computer and use it in GitHub Desktop.
Save flrent/5641869 to your computer and use it in GitHub Desktop.
Titanium / Add a custom label to a window
var titleLabel = Titanium.UI.createLabel({
height:'18dp',
top:'10dp',
left:'50dp',
text:"My title",
textAlign:'center',
font:{
fontWeight:'semibold',
fontSize:'13dp'
},
shadowColor:'#f7c5b9',
shadowOffset:{x:0,y:1}
});
window.setTitleControl(titleLabel);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment