Created
August 5, 2011 21:27
-
-
Save jonalter/1128564 to your computer and use it in GitHub Desktop.
CoverFlowView with borders on images
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
| var win = Ti.UI.createWindow({ | |
| backgroundColor: 'blue' | |
| }); | |
| var images = []; | |
| for (var c=0;c<30;c++) | |
| { | |
| var iv = Ti.UI.createImageView({ | |
| image: 'imageview/'+c+'.jpg', | |
| borderColor: 'red', | |
| borderWidth: 5 | |
| }); | |
| images[c] = iv.toImage(); | |
| } | |
| var view = Titanium.UI.createCoverFlowView({ | |
| images:images, | |
| backgroundColor:'#000', | |
| }); | |
| win.add(view); | |
| win.open(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment