Code example for ViewConfiguration

Methods: getScaledTouchSlop

0
    	 
    	//swipe distance is scaled on a per-view basis (maybe?) 
    	if (config == null)
    	{ 
    		config = ViewConfiguration.get(v.getContext());
    		minSwipeDistance = config.getScaledTouchSlop();
    	} 
    	 
    	 
    	 
        switch(event.getAction())
        { 
        case MotionEvent.ACTION_DOWN:
            downX = event.getX();
            downY = event.getY();
            if (listener != null)
        	{ 
        		listener.onStartSwipe(v);
        	} 
            return true; 
        case MotionEvent.ACTION_MOVE: