ThumbUpSample icon indicating copy to clipboard operation
ThumbUpSample copied to clipboard

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

Open yueban opened this issue 7 years ago • 1 comments

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

yueban avatar Nov 12 '17 07:11 yueban

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

arvinljw avatar Nov 15 '17 01:11 arvinljw