我知道这是有点晚,但其解决方案,我用了这个问题,希望它还是有帮助的。基本上,它涉及到将scrollView的不透明度设置为0,直到完成加载。这意味着,而不是一次出现1的行,它们全部同时出现,并且可以在您的程序/用户执行其他操作时在后台运行。请注意,这只是工作,如果滚动视图是空的 - 它不添加行到已有的东西在里面滚动型很好的解决方案:
var sView = Titanium.UI.createScrollView({
//Whatever properties you need for your scrollView
opacity: 0,
});
//childViews is an array of all the stuff you'd like to add to sView
childCount = childViews.length
//Add a postlayout event to the last childView - this will automatically set the opacity to 1 when the last child is loaded
childViews[childCount - 1].addEventListener('postlayout', function showScrollView(e){
this.parent.setOpacity(1);
this.removeEventListener(showScrollView);
});
//Iteratively add each view in the array to the sView
for (var x = 0; x < childCount; x++) {
sView.add(childViews[x]);
}
window.add(sView);
是它的工作....意见=滚动视图和所有其他子视图到您的scrollView ...并最终将其添加到窗口。 – Thalaivar 2013-04-07 03:24:57