android - Scrollview not flinging after onTouchListener attached -
i have scrollview has viewtreeobserver.onscrollchangedlistener not problem, once set ontouchlistener figure out when scrollview has stopped scrolling, flinging action on scrollview not happen anymore. here code: if doesnt run method have ontouch event , flinging still happens: @override public boolean ontouch(view view, motionevent event) { if (event.getaction() == motionevent.action_up) { horizontalscrollclipping((scrollview)view, view.getscrolly()); return false; //returning false instead of true } return false; } if this, method inside ontouch event fires off, flinging scrollview not happen : @override public boolean ontouch(view view, motionevent event) { if (event.getaction() == motionevent.action_up) { horizontalscrollclipping((scrollview)view, view.getscrolly()); return true; //returning true instead false } return false; } and if this, scrolling on scr