Created
January 5, 2012 22:32
-
-
Save alanleard/1567694 to your computer and use it in GitHub Desktop.
Image Display webview vs image
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 win = Ti.UI.createWindow(); | |
var webview = Ti.UI.createWebView({ | |
html:'<html><meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"><img src="http://b.vimeocdn.com/ps/929/929705_300.jpg"></html>' | |
}); | |
win.add(webview); | |
// var image =Ti.UI.createImageView({ | |
// image:'http://b.vimeocdn.com/ps/929/929705_300.jpg', | |
// width:'100%', | |
// height:'100%', | |
// }); | |
// win.add(image); | |
win.open(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment