public void setProgressStyle(int style) {
        LoadingDrawable drawable = null;
        if (style == STYLE_CIRCLE) {
            Resources resources = getResources();
            drawable = new LoadingCircleDrawable(resources.getDimensionPixelOffset(R.dimen.g_loading_minSize),
                    resources.getDimensionPixelOffset(R.dimen.g_loading_maxSize));
        } else if (style == STYLE_LINE) {
            drawable = new LoadingLineDrawable();
        }
        setLoadingDrawable(drawable);
    }
Change the loading style
You can set {@link #STYLE_CIRCLE} or {@link #STYLE_LINE} parameters

@param style {@link #STYLE_CIRCLE} or {@link #STYLE_LINE}
caprice/ui/src/main/java/net/qiujuer/genius/ui/widget/Loading.java