Skip to content

Instantly share code, notes, and snippets.

@TimBroddin
Created May 16, 2011 17:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TimBroddin/974963 to your computer and use it in GitHub Desktop.
Save TimBroddin/974963 to your computer and use it in GitHub Desktop.
not working scrollview
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