【发布时间】:2013-04-10 07:38:42
【问题描述】:
我的三星 Galaxy S3 和自定义 TextView 组件面临巨大的性能问题。
我已经覆盖了onDraw 方法:
canvas.drawText(getText().toString(), x, y, borderPaint);
canvas.drawText(getText().toString(), x, y, textPaint);
问题在于borderPaint 使用Paint.Style.STROKE。如果我将该属性注释掉,一切都会顺利进行,但我需要它来为我的TextView 绘制边框
谢谢。
【问题讨论】:
标签: android performance android-widget