androidsliderandroidimageslider

How to disable swipe in damajia's AndroidImageSlider in Android?


I am trying to use damajia's AndroidImageSlider and for my app I need to disable the swipe feature. From this link, they say that the have included in setSwipeEnabled function. But when I tried to call

sliderLayout.setSwipeEnabled()

This function doesn't exist. So, where to call this function?

My gradle file is :

implementation 'com.daimajia.slider:library:1.1.5@aar' 

Solution

  • You can override touch listener and not call their super whenever you want to stop swipe otherwise call it.