daimajia / AndroidImageSlider

An amazing and convenient Android image slider.
MIT License
5.62k stars 1.66k forks source link

Some Url not working #348

Closed ktinguer closed 7 years ago

ktinguer commented 7 years ago

is this type of url, suppose not to work? because it's working fine on web and mobile using Glide http://site.com/cfs/files/files/vRKb6Zfu8vLgD7He5 the problem is in the Picasso library, so change it to Glide using this code:

`public class GlideSliderView extends DefaultSliderView {

public GlideSliderView(Context context) {
    super(context);
}

protected void bindEventAndShow(final View v, ImageView targetImageView) {
    View progressBar = v.findViewById(com.daimajia.slider.library.R.id.loading_bar);
    if (progressBar != null) {
        progressBar.setVisibility(View.GONE);
    }

    Glide.with(getContext())
            .load(getUrl())
            .centerCrop()
            .crossFade()
            .into(targetImageView);

}

}`

the images shows, but the problem now is that the slider is not clickable anymore

any help please