dccv/src/main/java/com/vikramezhil/dccv/CalorieCounterView.java
private boolean isAValidClick(float startX, float endX, float startY, float endY) {
        float differenceX = Math.abs(startX - endX);
        float differenceY = Math.abs(startY - endY);

        return !(differenceX > properties.clickActionThreshold || differenceY > properties.clickActionThreshold);
    }
/**
     * Checks if the view touch is a valid click
     *
     * @param startX The start X position
     *
     * @param endX The end X position
     *
     * @param startY The start Y position
     *
     * @param endY The end Y position
     *
     * @return True - click was valid, False - if otherwise
     */
Checks if the view touch is a valid click
@param startX The start X position

@param endX The end X position

@param startY The start Y position

@param endY The end Y position

@return True - click was valid, False - if otherwise
Checks if the view touch is a valid click @param startX The start X position @param endX The end X position @param startY The start Y position @param endY The end Y position @return True - click was valid False - if otherwise
private boolean isAValidClick(float startX, float endX, float startY, float endY) {
        float differenceX = Math.abs(startX - endX);
        float differenceY = Math.abs(startY - endY);
        return !(differenceX > properties.clickActionThreshold || differenceY > properties.clickActionThreshold);
    }
private boolean isAValidClick ( float startX , float endX , float startY , float endY ) { float differenceX = Math . abs ( startX - endX ) ; float differenceY = Math . abs ( startY - endY ) ; return ! ( differenceX > properties . clickActionThreshold || differenceY > properties . clickActionThreshold ) ; }
Checks if the view touch is a valid click
 @param startX The start X position
Checks if the view touch is a valid click @param startX The start X position