AndroidAutoSwitcher icon indicating copy to clipboard operation
AndroidAutoSwitcher copied to clipboard

How to set delay/interval before going to next item?

Open topex-psy opened this issue 6 years ago • 1 comments

I'm just using this library. I like it. But the interval is just too fast. How can I set the time delay or interval between switch?

topex-psy avatar Dec 19 '18 15:12 topex-psy

You should set delay/interval using StrategyBuilder. I don't know what StrategyBuilder you are using so I take CarouselStrategyBuilder as an example:

autoSwitchView.setSwitchStrategy(new CarouselStrategyBuilder().setInterval(2000).build());

The method 'setInterval' is to set delay/interval.

Marksss avatar Dec 20 '18 02:12 Marksss