Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Autoplay feature #81

Closed
janheinrichmerker opened this issue Jun 10, 2016 · 5 comments
Closed

Autoplay feature #81

janheinrichmerker opened this issue Jun 10, 2016 · 5 comments

Comments

@janheinrichmerker
Copy link
Owner

This library should have an auto play feature like in this gif:

Canteen app
Credits go to @JovieBrett: https://dribbble.com/shots/2767412-Canteen-Onboarding-Screens

@janheinrichmerker
Copy link
Owner Author

Could be realized using a simple autoplay() method in IntroActivity.java that takes an integer as only argument. That way we could define how often the autoplay is repeated. -1 could be used for infinite counts.

@janheinrichmerker
Copy link
Owner Author

The autoplay should stop after the user touches the screen.

@janheinrichmerker
Copy link
Owner Author

janheinrichmerker commented Jun 23, 2016

Usage:

autoplay(long delay, int repeatCount)

delay: Delay in ms after which the next page gets selected. (Default: 1500)
repeatCount: Number of pages that will be selected or IntroActivity.INFINITE if you don't want to limit the cycles. (Default: IntroActivity.INFINITE)
Both arguments are optional. When they're not provided, default values will be used intead

@janheinrichmerker
Copy link
Owner Author

Note: repeatCount should count full cycles through the whole intro. I'll fix that in code.

@janheinrichmerker
Copy link
Owner Author

TODO: Set up the Canteen-Demo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant