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

Popular posts from this blog

user interface - How to replace the Python logo in a Tkinter-based Python GUI app? -

objective c - Greedy NSProgressIndicator Allocation -

how to set an OCR language in Google Drive -