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

Set start animation time #50

Open
Zukune opened this issue Sep 28, 2017 · 1 comment
Open

Set start animation time #50

Zukune opened this issue Sep 28, 2017 · 1 comment

Comments

@Zukune
Copy link

Zukune commented Sep 28, 2017

Hi, I would like to set a time to start the animation after this is opened? Is this possible? Thank you

@flavioarfaria
Copy link
Owner

You can accomplish that by pausing it and then scheduling a call to resume() in the future, such as:

  public void onCreate(...) {
    kenBurnsView.pause();
    new Handler().postDelayed(() -> {
      kenBurnsView.resume();
    }, 1000);
  }

That would delay the animation by 1 second.

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

No branches or pull requests

2 participants