Android-Image-Slider
Android-Image-Slider copied to clipboard
Indicator disappears by navigating through fragments
Hey, it's my first time using ImageSlider, the problem I am facing is that when I navigate between my fragments in an activity or pause the app and return to the image Slider fragment, the indicators disappear and I have no clue why?, I tried to set the visibility to true but that even didn't work. I really don't understand why this happens although I have read all the readme and wrote my code exatcly as it was written. I would appreciate any help from all of u! wish u the best
Hello, I'm facing the same issue. I'd appreciate your help to solve this.
The library is really good!
Hi, this is my concern too. I initialize adapter and set properties to SliderView in onViewCreated() also indicators are shown as well, but after the first fragmentManager's transaction and backStack indicators are not shown.
anybody solved this issue?
anybody solved this issue?
use this approach. It work https://github.com/smarteist/Android-Image-Slider/issues/176#issuecomment-723536425
sliderView.setIndicatorVisibility(true);
sliderView.setSliderAdapter(null,false);
sliderView.setSliderAdapter(slidAdapter,true);
sliderView.setIndicatorVisibility(true); sliderView.setSliderAdapter(null,false); sliderView.setSliderAdapter(slidAdapter,true);
can you tell me where to add this code? as I am adding infiniteAdapter true then my items in slider are increasing after onResume called
setSliderAdapter(null,false);
after initialize adapter