android - disable listview scrolling when ontouchlistener is fired -
i attached ontouch listener listview can drag listview left right. while im dragging listview im able scroll well. how can disable listview scroll while i'm dragging it.
listview.setontouchlistener(new ontouchlistener() { public boolean ontouch(view v, motionevent event) { if (event.getaction() == motionevent.action_move) { return true; // indicates has been handled , not forwarded further. } return false; } }); or
listview.setscrollcontainer(false);
Comments
Post a Comment