Skip to content
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

icon 动画的性能是否存在优化空间 #6

Open
yueban opened this issue Nov 12, 2017 · 1 comment
Open

icon 动画的性能是否存在优化空间 #6

yueban opened this issue Nov 12, 2017 · 1 comment

Comments

@yueban
Copy link

yueban commented Nov 12, 2017

源码中拇指 icon 的在动画的每个瞬间都会执行一次 BitmapFactory.decodeResource & Bitmap.createBitmap,如果通过 canvas.scale 来做动画是否存在一定的性能提升?

@arvinljw
Copy link
Owner

会有比较大的提升的,当时这样做,只考虑了去直接操控bitmap,没有换种思路。谢谢你的建议。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants