-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dialog帧动画布局位置,show和dismiss瞬间,会有黑块 #41
Comments
复现不成功。
|
Dialog只初始化一次,后面只调用show,首次正常,后面的次数,帧动画布局会黑屏,有点像是SurfaceView还没有渲染上去的,隔了几十毫秒才渲染完成,正常来说除了第一次,后面的应该更快,可能是stopAnimationSafely释放了一些资源。 机型:Readboy读书郎平板,Android平台5.1.1,其他机型没试。 // 初始化 // show //dismiss //最终不用的时候才释放 |
每次启动动画的时候,playAnimationFromAssets比较耗时,如果是按钮触发,按钮会在按下的状态卡住1000毫秒左右。继续上个问题,首次开启,帧动画也会延迟几十毫秒才显示,背景透明。除了首次,后面的也会延迟几十毫秒显示帧动画,与首次不同的是背景透明变成了黑屏 |
用5.1的机器还是没有复现出来。卡顿1s左右的问题,可以用TraceView或插桩排查下具体卡在哪个方法。 |
Dialog帧动画布局位置,show和dismiss瞬间,会有黑块
// show代码块
reward_badge.run {
autoRelease = false
setScaleType(FrameAnimation.ScaleType.FIT_XY)
setFrameInterval(135)
setRepeatMode(FrameAnimation.RepeatMode.INFINITE)
playAnimationFromAssets("anim/live_reward")
}
// dismiss代码块
reward_badge.stopAnimationSafely()
The text was updated successfully, but these errors were encountered: