@Override
    public int getIntrinsicHeight() {
        return (int) Math.max(mBackgroundPaint.getStrokeWidth(), mForegroundPaint.getStrokeWidth());
    }
A drawable to draw loading form Line Type
caprice/ui/src/main/java/net/qiujuer/genius/ui/drawable/LoadingLineDrawable.java