@Override
    int getNextForegroundColor() {
        mProgressType++;
        if (mProgressType > 3)
            mProgressType = 1;
        return super.getNextForegroundColor();
    }
A drawable to draw loading form Line Type
caprice/ui/src/main/java/net/qiujuer/genius/ui/drawable/LoadingLineDrawable.java