daimajia / daimajia/AndroidImageSlider
Images in the SlideLayout looping on all images very Fast During RunTime .
- Dominant language
- Java
- Stars
- 5.6k
- Forks
- 1.6k
- PR merge metrics
- No merged PRs in 30d
Description
While Adding Image Links to the DefaultSliderView, and Then add this SliderView to the SliderLayout , it loops for all images and also the Indicator loops with images .
```
/* FEATURED PRODUCTS SLIDER */
if(FeaturedProductsArrayListSlider.size()>0) {
for (int i = 0; i < FeaturedProductsArrayListSlider.size(); i++) {
DefaultSliderView ProductsTextSliderView = new DefaultSliderView(act);
ProductsTextSliderView
.image(FeaturedProductsArrayListSlider.get(i).getPhoto().replace("/Original/","/540/"))
.error(R.drawable.slider_bg)
.setScaleType(BaseSliderView.ScaleType.Fit)
.setOnSliderClickListener(pSliderListner);
ProductsTextSliderView.getBundle().putString("SelectedProduct", FeaturedProductsArrayListSlider.get(i).getId());
FeaturedProductsGallery.addSlider(ProductsTextSliderView);
}
if(FeaturedProductsArrayListSlider.size()>1) {
FeaturedProductsGallery.startAutoCycle();
}else if(FeaturedProductsArrayListSlider.size() == 1) {
FeaturedProductsGallery.stopAutoCycle();
}
FeaturedProductsGallery.setPresetTransformer(SliderLayout.Transformer.Default);
FeaturedProductsGallery.setCustomIndicator(pIndicator);
FeaturedProductsGallery.setCustomAnimation(new DescriptionAnimation());
FeaturedProductsGallery.setDuration(4000);
}
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.