Android-Image-Slider icon indicating copy to clipboard operation
Android-Image-Slider copied to clipboard

Indicator disappears by navigating through fragments

Open hazharaziz opened this issue 4 years ago • 7 comments

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

hazharaziz avatar May 25 '20 13:05 hazharaziz

Hello, I'm facing the same issue. I'd appreciate your help to solve this.

The library is really good!

fedeverdini avatar Jun 23 '20 14:06 fedeverdini

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.

theaminnouri avatar Sep 12 '20 09:09 theaminnouri

anybody solved this issue?

jignesh8992 avatar Nov 27 '20 07:11 jignesh8992

anybody solved this issue?

use this approach. It work https://github.com/smarteist/Android-Image-Slider/issues/176#issuecomment-723536425

theaminnouri avatar Nov 28 '20 12:11 theaminnouri

sliderView.setIndicatorVisibility(true);
sliderView.setSliderAdapter(null,false);
sliderView.setSliderAdapter(slidAdapter,true);

aminsato avatar Jun 24 '21 07:06 aminsato

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

fahad-mukhtar avatar Jun 30 '21 16:06 fahad-mukhtar

setSliderAdapter(null,false);

after initialize adapter

aminsato avatar Jul 08 '21 08:07 aminsato