Last active
December 17, 2015 16:49
-
-
Save flrent/5641869 to your computer and use it in GitHub Desktop.
Titanium / Add a custom label to a window
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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