chxaioge / framesequence Goto Github PK
View Code? Open in Web Editor NEWandroid java animate webp and gif support
android java animate webp and gif support
In app gradle file, you can change to this:
apply plugin: 'com.android.library'
android {
compileSdkVersion 28
defaultConfig {
//applicationId "com.lbe.graphics.framesequence"
minSdkVersion 15
targetSdkVersion 28
versionCode 1
versionName "1.0.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
sourceSets {
main {
jni.srcDirs = []
jniLibs.srcDirs = ['src/main/libs/']
}
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
androidTestImplementation('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
implementation 'com.android.support:support-annotations:27.1.1'
testImplementation 'junit:junit:4.12'
}
...
And in the project gradle file, you can use this:
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.3'
}
}
allprojects {
repositories {
google()
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
To see how to use it.
Could be nice to know hot exactly to use it, inside an ImageView, and even as a step-by-step Bitmaps (meaning I can go over each frame of the GIF/WEBP animation).
This could cover most cases of using it.
Also, could be nice to be able to use gradle in our app, instead of building here and get the needed files.
当显示gif动画的activity 进入stop状态后,再回到当前activity时,会出现gif动画播放过快现象,持续几秒钟后会按照正常速度播放,不知道大神有没有遇到这种情况
I get this:
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':framesequence:ndkBuild'.
> A problem occurred starting process 'command 'C:\Users\user\AppData\Local\Android\Sdk\ndk-bundle/ndk-build''
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 0s
How come?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.