public void setBorder(RectF border) {
        if (border.left != 0 || border.top != 0 || border.right != 0 || border.bottom != 0) {
            if (mBorder == null)
                mBorder = new RectF(border);
            else
                mBorder.set(border);
        } else
            this.mBorder = null;
    }
This class is draw line on border
Line is support dash line
This class is extend shape
Use to ShapeDrawable class
caprice/ui/src/main/java/net/qiujuer/genius/ui/drawable/shape/BorderShape.java