有谁知道如何使用类似于此框架的钛合金在 View 功能之间进行滑动 https://github.com/cwRichardKim/RKSwipeBetweenViewControllers .
我到处搜索,似乎找不到任何示例。在当前可用的框架下,钛是否可能或不可能?
最佳答案
ScrollableView of titanium 是你的 friend
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();
谢谢
关于android - 钛合金中像 Snapchat 一样在 View 之间滑动,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27054160/