I'd like to paint in a Canvas something like:
How can I do the bordered effect? Thanks
Draw the text two times. First draw the text with a fill paint like so:
Paint fillPaint = new Paint(); fillPaint.setColor(Color.MAGENTA); canvas.drawText(.... fillPaint);
Then draw it again with a stroke like so:
Paint stkPaint = new Paint(); stkPaint.setStyle(Style.STROKE); stkPaint.setStrokeWidth(8); stkPaint.setColor(Color.WHITE); canvas.drawText(.... stkPaint);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With