Skip to content

Instantly share code, notes, and snippets.

@jonalter
Created August 5, 2011 21:27
Show Gist options
  • Select an option

  • Save jonalter/1128564 to your computer and use it in GitHub Desktop.

Select an option

Save jonalter/1128564 to your computer and use it in GitHub Desktop.
CoverFlowView with borders on images
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