daimajia / daimajia/AndroidImageSlider

Stop ProgressBar when image load error

Open
#46 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
5.6k
Forks
1.6k
PR merge metrics
No merged PRs in 30d

Description

I used your AndroidImageSlider lib, but when you set the image error with placeholder, the ProgressBar does not disappear.

Is there any way to solve this problem?

I have an idea that can help.

In the BaseSliderView method bindEventAndShow, when rq.into execute onError, you can stop progress.

@Override
public void onError() {
if(mLoadListener != null){
mLoadListener.onEnd(false,me);
}
if(v.findViewById(R.id.loading_bar) != null){
v.findViewById(R.id.loading_bar).setVisibility(View.INVISIBLE);
}
}

I think this works

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.