Comments (13)
或者其他可以控制动画播放时长的方法也行啊
from svgaplayer-android.
动画播放时调用 stepToFrame 是正确的方法,如果出现 crash,你可以把可以重现的 demo 发送至 [email protected]
from svgaplayer-android.
邮件发送好了,您有时间帮我看一下,谢谢
from svgaplayer-android.
@Override
public void onStep(int i, double v) {
Log.d("---","---onStep--i="+i+"--v="+i);
imageView.stepToFrame(i+1,true); //这里不知道怎么写,现在这样是会java.lang.StackOverflowError:stack size 8MB
}
在 onStep 中调用 stepToFrame 会同时触发 onStep 回调,导致死循环。
你为何要做这样的操作?
from svgaplayer-android.
我想缩短动画的播放时间,stepToFrame()不知道应该在哪里调用
from svgaplayer-android.
缩短动画播放时间应该找设计师导出新的动画文件给你
from svgaplayer-android.
我看ios是可以跳帧播放的啊
from svgaplayer-android.
你应该找设计师解决这个问题
from svgaplayer-android.
可以设置每一帧的播放时间吗
from svgaplayer-android.
ios 好像可以在svgaPlayerDidAnimatedToFrame 这个方法里面跳帧
from svgaplayer-android.
只需要让设计把动画缩短即可
from svgaplayer-android.
好吧,不过那样同一个礼物效果要做至少两个动画文件----谢谢解答
from svgaplayer-android.
这种事情本来就不应该由代码控制的,一旦你这样做,只会让你的代码混乱不堪。
from svgaplayer-android.
Related Issues (20)
- 偶现加载不出来
- Android 12 下内存不释放
- beginning of crash after several loading
- NummpointerException
- 最新版本的setOnLoadCompleteListener不会回调的问题依旧存在 HOT 1
- Android StrictMode policy violation; ~duration=381 ms: android.os.strictmode.DiskReadViolation
- 更新
- Svga库使用RGB_565配置加载Bitmap,导致渲染效果差,和官网效果不一致。
- Svga库使用RGB_565配置加载Bitmap,导致渲染效果差,和官网工具效果不一致。
- Android Studio Dolphin can not preview HOT 5
- 现在这个缓存相关是不是跟文档有出入...
- 鸿蒙Os 2.0系统,内存泄漏严重,clear也不行,内存不回收
- 停止动画后声音无法停止(2.6.1版本) HOT 1
- 您的应用中存在不安全的解压缩模式,可能会导致路径遍历安全漏洞。请参阅这篇 Google 帮助中心文章,了解如何解决此问题。 com.opensource.svgaplayer.SVGAParser.unzip
- 这个跟动画没有关系,是Viewpager回收机制导致的。
- ViewPager切换动画消失
- Demo能不能提供下ViewPager和RecyclerView里svga动画 HOT 1
- The view will stop animation after playing for 1 second but the animation is 3 seconds long using in Jetpack Compose
- 在模拟器上很容易内存溢出,有什么解决方案吗。 HOT 2
- OOM about simulator
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from svgaplayer-android.