MultiLineChoose icon indicating copy to clipboard operation
MultiLineChoose copied to clipboard

MultiLineChoose绘制卡顿

Open ace2014 opened this issue 8 years ago • 1 comments

这个lib有绘制bug,造成引用该lib的项目主线程占用cpu异常以致卡顿。 MultiLineChoose的内部类ItemView 有绘制bug。 @Override protected void onDraw(Canvas canvas) { if (!animUpdateDrawable) { updateDrawable(); } super.onDraw(canvas); } 当一旦调用了 updateDrawable();后会触发ItemView 再次绘制调用onDraw,从而进入死循环的不断绘制,界面卡顿。setBackgroundDrawable(drawable);setBackground(drawable);。animUpdateDrawable标志位控制有问题。

ace2014 avatar Jun 02 '17 01:06 ace2014