library/src/main/java/com/lsxiao/library/DraggableLayout.java
/**
     * the fixed circle's radius is depend on the distance from fixedCircle's center to DragCircle's center.
     * you need invoke this method to update the fixedCircle's radius when the distance is changed.
     */
the fixed circle's radius is depend on the distance from fixedCircle's center to DragCircle's center.
you need invoke this method to update the fixedCircle's radius when the distance is changed.
the fixed circle ' s radius is depend on the distance from fixedCircle ' s center to DragCircle ' s center . you need invoke this method to update the fixedCircle ' s radius when the distance is changed .
private void updateFixedCircleRadius() {
        if (mTouchedDotView == null) {
            return;
        }
        final float deltaLength = Math.max(mTouchedDotView.getMaxStretchLength() - getLengthBetweenCenter(), 0);
        final float fraction = deltaLength / mTouchedDotView.getMaxStretchLength();
        mFollowCircle.radius = fraction * mTouchCircle.radius;
    }
private void updateFixedCircleRadius ( ) { if ( mTouchedDotView == null ) { return ; } final float deltaLength = Math . max ( mTouchedDotView . getMaxStretchLength ( ) - getLengthBetweenCenter ( ) , 0 ) ; final float fraction = deltaLength / mTouchedDotView . getMaxStretchLength ( ) ; mFollowCircle . radius = fraction * mTouchCircle . radius ; }
the fixed circle's radius is depend on the distance from fixedCircle's center to DragCircle's center.
the fixed circle ' s radius is depend on the distance from fixedCircle ' s center to DragCircle ' s center .