@Override
    public int getIntrinsicHeight() {
        float maxLine = Math.max(mBackgroundPaint.getStrokeWidth(), mForegroundPaint.getStrokeWidth());
        int size = (int) (maxLine * 2 + 10);
        return Math.min(mMaxSize, Math.max(size, mMinSize));
    }
A drawable to draw loading form Circle Type
caprice/ui/src/main/java/net/qiujuer/genius/ui/drawable/LoadingCircleDrawable.java