I have created a basic application for testing and make the assumption that all three pages are loading automatically. Is that true based on the code? If I didn't want each page to load up front including all images how would I alter this code assuming it is preloading the way I have it? This is an example, however I would have more like 8 pages. As a side inquiry, if there are performance issues, how would I preload the page before(if not page 1) and the page after as you scroll thru the application?
var win = Ti.UI.createWindow();
// var view1 = Ti.UI.createView({ url : 'index.html' }); var view1 = Ti.UI.createWebView({ url: "index.html"}); var view2 = Ti.UI.createWebView({ url: "index2.html"}); var view3 = Ti.UI.createWebView({ url: "index3.html"}); // var view2 = Ti.UI.createView({ backgroundColor:'#246' }); // var view3 = Ti.UI.createView({ backgroundColor:'#48b' });
var scrollableView = Ti.UI.createScrollableView({
views:[view1,view2,view3],
showPagingControl:false
});
win.add(scrollableView);
win.open();
Thanks.
JR
Your Answer
Think you can help? Login to answer this question!