KenBurnsView icon indicating copy to clipboard operation
KenBurnsView copied to clipboard

Set start animation time

Open Zukune opened this issue 7 years ago • 1 comments

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

Zukune avatar Sep 28 '17 02:09 Zukune

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.

flavioarfaria avatar Nov 01 '17 21:11 flavioarfaria