AndroidImageSlider icon indicating copy to clipboard operation
AndroidImageSlider copied to clipboard

Delay duration ignored for first slide when activity first started

Open MarcRubio opened this issue 11 years ago • 5 comments

When you start the activity with the slider and if this is set to auto-cycle, the first image will slide to the next almost instantly even though a delay is set. The .setDuration() delay will work after this initial slide.

Apart from that well done, very nice library!

MarcRubio avatar Jan 10 '15 22:01 MarcRubio

Yep, I have a similar situation. Could you give advice how to solve this problem. Thanks a lot)

sezya-kot avatar Feb 24 '15 16:02 sezya-kot

Same here :)

gloushkov avatar Mar 19 '15 20:03 gloushkov

I have also same Problem.:)

dharmeshpanchal999 avatar May 02 '15 06:05 dharmeshpanchal999

try this

...
mSlider.setPresetTransformer(4);
mSlider.setDuration(8000);
mSlider.stopAutoCycle();
...
final Handler handler = new Handler();
handler.postDelayed(new Runnable() {
  @Override
  public void run() {
    mSlider.startAutoCycle();
  }
}, 5000);      

cactis avatar May 19 '15 16:05 cactis

I saw that the issue was fixed by the above commit. But for me, with version 1.1.5 it is not working. I had to implement the above solution to get this working. Anyone knows why?

andreyluiz avatar Mar 17 '16 23:03 andreyluiz