@Override
    public int getIntrinsicWidth() {
        float maxLine = Math.max(mBackgroundPaint.getStrokeWidth(), mForegroundPaint.getStrokeWidth());
        return (int) (maxLine * 2);
    }
A drawable to draw loading
The loading draw a Circle
caprice/ui/src/main/java/net/qiujuer/genius/ui/drawable/LoadingDrawable.java