Wednesday, April 10, 2013

[android help] Bad performance with Paint.Style.STROKE and drawText


I am facing huge performance issues with my Samsung Galaxy S3 and custom TextView component.


I've overridden onDraw method:



canvas.drawText(getText().toString(), x, y, borderPaint);
canvas.drawText(getText().toString(), x, y, textPaint);


The problem is with borderPaint using Paint.Style.STROKE. If I comment that attribute off, everything works smoothly, but I need it to get border drawn for my TextView


Thanks.



.

stackoverflow.comm

No comments:

Post a Comment

Google Voice on T-Mobile? [General]

Google Voice on T-Mobile? So I recently switched from a GNex on Verizon to a Moto X DE on T-Mobile. I had always used Google Voice for my v...