Update README.md

This commit is contained in:
oupson 2018-10-05 21:51:13 +02:00 committed by GitHub
parent 3953707072
commit 8e36373754
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 19 additions and 0 deletions

View File

@ -1,2 +1,21 @@
# Kapng-Android
An android library to create or display apng
Exemple of apng :
![apng-example](https://upload.wikimedia.org/wikipedia/commons/1/14/Animated_PNG_example_bouncing_beach_ball.png)
How to use this library :
To load animated png to an imageview :
```kotlin
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)
animator.load(imageUrl)
animator.play()
```
To create animated png : WORK IN PROGRESS