implementation 'com.github.Justson:CoolIndicator:v1.0.0'
public class CoolIndicatorLayout extends BaseIndicatorView {
CoolIndicator mCoolIndicator = null;
public CoolIndicatorLayout(Context context) {
this(context, null);
}
public CoolIndicatorLayout(Context context, @Nullable AttributeSet attrs) {
this(context, attrs, -1);
}
@SuppressLint("UseCompatLoadingForDrawables")
public CoolIndicatorLayout(Context context, @Nullable AttributeSet attrs, int defStyleAttr) {
super(context, attrs, defStyleAttr);
mCoolIndicator = CoolIndicator.create((Activity) context);
mCoolIndicator.setProgressDrawable(context.getResources().getDrawable(com.coolindicator.sdk.R.drawable.default_drawable_indicator, context.getTheme()));
this