This commit is contained in:
oupson 2019-06-13 11:01:48 +02:00
parent de4073e6b8
commit f682717ed3
4 changed files with 4 additions and 8 deletions

View File

@ -9,13 +9,9 @@ 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(this).loadInto(imageView)
animator.load(imageUrl)
animator.play()
val animator = imageView.load(imageUrl)
```
To create animated png :
@ -42,7 +38,7 @@ repositories {
}
dependencies {
implementation 'com.github.oupson:Kapng-Android:1.0.8'
implementation 'com.github.oupson:Kapng-Android:1.0.9'
}
```

View File

@ -8,7 +8,7 @@ android {
minSdkVersion 21
targetSdkVersion 28
versionCode 1
versionName "1.0.9-beta"
versionName "1.0.9"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"

View File

@ -11,7 +11,7 @@ android {
minSdkVersion 24
targetSdkVersion 28
versionCode 1
versionName "1.0"
versionName "1.0.9"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
// Configure only for each module that uses Java 8