@Override
    protected void onAttachedToWindow() {
        super.onAttachedToWindow();
        if (mAutoRun && mLoadingDrawable.getProgress() == 0) {
            if (getVisibility() == VISIBLE)
                mLoadingDrawable.start();
            else
                mNeedRun = true;
        }
    }
In this we set LoadingDrawable really

@param drawable {@link LoadingDrawable}
caprice/ui/src/main/java/net/qiujuer/genius/ui/widget/Loading.java