Skip to content

Instantly share code, notes, and snippets.

@ryugoo
Created September 2, 2012 11:52
Show Gist options
  • Save ryugoo/3597595 to your computer and use it in GitHub Desktop.
Save ryugoo/3597595 to your computer and use it in GitHub Desktop.
ImageView Test (2.1.2)
Globals = {}
do ->
# Window
win = Ti.UI.createWindow
title: "Tweet"
backgroundColor: "#FFFFFF"
tabBarHidden: true
imageView = Ti.UI.createImageView
image: "http://pbs.twimg.com/media/A1yF3hLCUAAcy5u.jpg:small"
hires: true
width: Ti.UI.SIZE
height: Ti.UI.SIZE
win.add imageView
# Tab
tabGroup = Ti.UI.createTabGroup()
tab = Ti.UI.createTab
title: "Tweet"
window: win
tabGroup.addTab tab
tabGroup.open()
return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment