Listview move事件 怎么能监听到?

LISTVIEW MOVE事件 怎么能监听到?

您好,listview本身是有滚动事件的,但是没有move事件。tiem也是只有点击和抬起的事件。

我想在滚动的时候 屏蔽掉点击和抬起的事件,有什么方案吗?

您只需要接收抬起事件即可。

void FriendsList::selectedItemEvent(CCObject * pSender, ListViewEventType type)
{
click++;
if(click % 2 == 0)
{
switch (type)
{
case cocos2d::gui::LISTVIEW_ONSELECTEDITEM:
{
UIListView * listViewEx = static_cast<UIListView*>(pSender);
CCLOG(“select child index = %d”, listViewEx->getCurSelectedIndex());
FriendCard::id = FriendData->id;
CCScene * scene = FriendCard::scene();
CCDirector::sharedDirector()->replaceScene(CCTransitionFade::create(0.5f,scene));
}
}
}
}

我这个方法怎么让它在滚动的时候不接收到点击事件呢?