stateLayout
stateLayout copied to clipboard
我往里面添加了一个自定义的loadingview 显示位置不居中
state_layout.setUseAnimation(true);
CmbViewLoading.Builder builder = new CmbViewLoading.Builder();
builder.setContext(getActivity());
builder.setColor(getResources().getColor(R.color.color_green_26bb96));
builder.setWith((int) getResources().getDimension(R.dimen.qb_px_88));
builder.setHeight((int) getResources().getDimension(R.dimen.qb_px_36));
builder.setTypeName("LineSpinFadeLoaderIndicator");
View view = builder.create();
state_layout.showLoadingView(view, false);