public void setAnchorPoint(float anchorPoint) {
        if (anchorPoint > 0 && anchorPoint <= 1) {
            mAnchorPoint = anchorPoint;
            mFirstLayout = true;
            requestLayout();
        }
    }
Set an anchor point where the panel can stop during sliding

@param anchorPoint A value between 0 and 1, determining the position of the anchor point
                   starting from the top of the layout.
app/src/main/java/home/smart/fly/animations/widget/slidepanel/SlidingUpPanelLayout.java