Skip to content

MaterialLoadingRenderer

dinus_developer edited this page Aug 1, 2016 · 19 revisions

This page shows the builder you can use to create the MaterialLoadingRenderer.
E.g:

LoadingRenderer loadingRenderer = new MaterialLoadingRenderer.Builder(this)
                .setWidth((int) DensityUtil.dip2px(this, 50))
                .setHeight((int) DensityUtil.dip2px(this, 50))
                .setCenterRadius((int) DensityUtil.dip2px(this, 10))
                .setStrokeWidth((int) DensityUtil.dip2px(this, 4))
                .setColors(new int[] {Color.GRAY, Color.RED, Color.GREEN})
                .build();

Clone this wiki locally