Created
May 16, 2011 17:58
-
-
Save TimBroddin/974963 to your computer and use it in GitHub Desktop.
not working scrollview
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 window = window = Ti.currentWindow; | |
var scrollView = Titanium.UI.createScrollView({ | |
backgroundColor:'transparent', | |
contentWidth:'auto', | |
contentHeight:'auto', | |
showVerticalScrollIndicator:true | |
}); | |
var tableView = Ti.UI.createTableView({ | |
data:data, | |
style: Titanium.UI.iPhone.TableViewStyle.GROUPED, | |
opacity: 0.7, | |
backgroundColor: 'transparent' | |
}); | |
if(movie.trailer) { | |
var embedCode = '<html><head></head><body style="margin:0; background-color: black;"><embed id="yt" src="http://www.youtube.com/watch?v='+movie.trailer+'" type="application/x-shockwave-flash" width="512" height="288"></embed></body></html>'; | |
var webview = Ti.UI.createWebView({ | |
title:'Trailer', | |
html: embedCode, | |
height:288, | |
width:512, | |
top: tableHeight + 30 | |
}); | |
scrollView.add(webview); | |
} | |
window.add(scrollView); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment