【发布时间】:2014-10-13 13:33:35
【问题描述】:
我将 Titanium 3.4 和 Ally 1.5.1 用于跨平台应用程序(iOS 和 Android)。 我的 TableView 和 ScrollView 有问题。当内容大于屏幕时,视图可以正确滚动,但在 iOS 上,当我使用滑动手势时,视图会继续滚动一段时间,直到停止。然而,在 Android 上,只要我将手指从屏幕上拉出,它就会停止滚动。
我已经安装了“待办事项列表”示例应用程序,但它在 Android 上没有此行为,滑动后列表继续滚动。
如何在 Android 上激活此连续滚动功能? (或者我是怎么不小心停用的)
示例视图:
<Alloy>
<View id="experiencesList">
<View id="contentWrapper">
<TableView class="cTable" id="experienceTable" onClick="experienceListOnClick"/>
</View>
</View>
</Alloy>
一个示例 tss:
"#experiencesList":{
width: Ti.UI.Fill,
height: Ti.UI.Fill,
layout: "absolute"
},
"#contentWrapper":{
top: "0dp",
height: Alloy.Globals.appConfig.contentHeight,
backgroundColor: "white"
},
"TableView":{
height: Ti.UI.SIZE,
top: 0,
separatorInsets: {
left: 0,
right: 0
},
scrollable: true,
separatorColor: "black"
},
"TableView[platform=ios]":{
scrollIndicatorStyle: Titanium.UI.iPhone.ScrollIndicatorStyle.BLACK
}
【问题讨论】:
标签: titanium titanium-mobile titanium-alloy