library/src/main/java/com/lsxiao/library/DraggableLayout.java
/**
     * process the drag event.
     *
     * @param ev MotionEvent
     * @return true, if consume the event,and start to drag.
     */
process the drag event.
@param ev MotionEvent
@return true, if consume the event,and start to drag.
process the drag event . @param ev MotionEvent @return true if consume the event and start to drag .
private boolean processTouchEvent(MotionEvent ev) {
        boolean processed = true;
        final int action = ev.getAction();
        switch (action) {
            case MotionEvent.ACTION_MOVE: {
                processed = processMove(ev);
                break;
            }
            case MotionEvent.ACTION_UP:
            case MotionEvent.ACTION_CANCEL: {
                processActionUp(ev);
                break;
            }
        }
        invalidate();
        return processed;
    }
private boolean processTouchEvent ( MotionEvent ev ) { boolean processed = true ; final int action = ev . getAction ( ) ; switch ( action ) { case MotionEvent . ACTION_MOVE : { processed = processMove ( ev ) ; break ; } case MotionEvent . ACTION_UP : case MotionEvent . ACTION_CANCEL : { processActionUp ( ev ) ; break ; } } invalidate ( ) ; return processed ; }
process the drag event.
process the drag event .