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

setIndicatorVisibility non-functional

Open hmoreau94 opened this issue 5 years ago • 1 comments

Hi,

I would like to hide the indicator, I have followed the readme and everything is functional, nevertheless if I call this.img_header.setIndicatorVisibility(false) (where img_header is the id of my imageSlider in my layout) in onViewCreated it doesn't seem to do anything: the indicator remains.

I have looked at the source and don't really understand what is going on (haven't really looked hard though).

Your help would be appreciated! All the best,

hmoreau94 avatar Apr 15 '20 13:04 hmoreau94

You can just set the indicator color to transparent.

private SliderView sliderView;
sliderView.setIndicatorSelectedColor(Color.TRANSPARENT);
sliderView.setIndicatorUnselectedColor(Color.TRANSPARENT);

andyleekp avatar Apr 16 '20 03:04 andyleekp