@Override
    protected void onProgressChange(float progress) {
        mForegroundLeft = mStartX;
        mForegroundRight = mStartX + ((mEndX - mStartX) * progress);
    }
A drawable to draw loading form Line Type
caprice/ui/src/main/java/net/qiujuer/genius/ui/drawable/LoadingLineDrawable.java