From 9bd8d79c96512a060e3baf9a05cd321b2ff0b9de Mon Sep 17 00:00:00 2001 From: oupson <31827294+oupson@users.noreply.github.com> Date: Thu, 25 Oct 2018 15:20:04 +0200 Subject: [PATCH] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c585850..33773e2 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ To load animated png to an imageview : val imageUrl = "https://upload.wikimedia.org/wikipedia/commons/1/14/Animated_PNG_example_bouncing_beach_ball.png" // image url could be an url, or a file path. You could also load byteArray and file -val animator = ApngAnimator(imageView) +val animator = ApngAnimator(this).loadInto(imageView) animator.load(imageUrl) animator.play() @@ -42,7 +42,7 @@ repositories { } dependencies { - implementation 'com.github.oupson:Kapng-Android:1.0.0' + implementation 'com.github.oupson:Kapng-Android:1.0.1' } ```