2014-11-21 41 views

回答

1

ScrollableView這裏是你的朋友,你去

http://docs.appcelerator.com/titanium/3.0/#!/api/Titanium.UI.ScrollableView

var win = Ti.UI.createWindow(); 

var view1 = Ti.UI.createView({ backgroundColor:'#123' }); 
var view2 = Ti.UI.createView({ backgroundColor:'#246' }); 
var view3 = Ti.UI.createView({ backgroundColor:'#48b' }); 

var scrollableView = Ti.UI.createScrollableView({ 
    views:[view1,view2,view3], 
    showPagingControl:true 
}); 

win.add(scrollableView); 
win.open(); 

感謝

+0

它適合你嗎? – 2014-11-21 20:17:47

+0

它工作完美!非常感謝你! – 2014-11-21 21:28:16