Created
June 4, 2010 17:03
-
-
Save kwhinnery/425669 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
//Create a container view | |
var container = Ti.UI.createView({ | |
width:200, | |
height:200, | |
top:10, | |
left:10 | |
}); | |
//Create a drop shadow view | |
var shadow = Ti.UI.createView({ | |
width:195, | |
height:195, | |
right:0, | |
bottom:0, | |
borderRadius:5, | |
opacity:0.5, | |
backgroundColor:"#787878" | |
}); | |
container.add(shadow); | |
//Create a view for our content | |
var content = Ti.UI.createView({ | |
width:195, | |
height:195, | |
top:0, | |
left:0, | |
borderRadius:5, | |
backgroundColor:"#cdcdcd" | |
}); | |
content.add(Ti.UI.createLabel({ | |
text:"Here is some content", | |
textAlign:"center", | |
color:"#000" | |
})); | |
container.add(content); | |
//Open an application window | |
var win = Ti.UI.createWindow({ | |
backgroundColor:"#fff" | |
}); | |
win.add(container); | |
win.open(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment