【发布时间】:2016-08-31 09:40:05
【问题描述】:
查看xml(列表视图模板)
<Alloy>
<ItemTemplate id="test">
<View onTouchstart="touch" width="Ti.UI.SIZE" height="Ti.UI.SIZE">
<Label>test</Label>
</View>
</ItemTemplate>
</Alloy>
控制器js
function touch(e){
Ti.API.debug('touch!!');
};
不只触发android..(iOS 很好)
并且在不使用ListView的代码下,android(和iOS)没问题。
<Alloy>
<Window class="container">
<View onTouchstart="touch" width="Ti.UI.SIZE" height="Ti.UI.SIZE">
<Label>test</Label>
</View>
</Window>
</Alloy>
不知道有没有人解决?
【问题讨论】:
标签: android titanium appcelerator titanium-alloy