How to tilt a TextView

Is there an easy way to draw an oblique stroke on a TextView? Now I use this code:

textview.setPaintFlags(textview.getPaintFlags() | Paint.STRIKE_THRU_TEXT_FLAG);

But I need something like this:
enter image description here
I am not very familiar with the Paint API, how easy it is to achieve this, so any help would be appreciated.
Thank.

+5
source share
1 answer

This is pretty easy with a custom class TextView. Check out

Here's the end result:

Screenshothot

+9
source

All Articles