Is there any simple way how to draw obliquely strike through on TextView? Now I’m using this code:
textview.setPaintFlags(textview.getPaintFlags() | Paint.STRIKE_THRU_TEXT_FLAG);
But I need something like this:

I’m not very familiar with Paint API how to simply achive this so any help will be appreciated.
Thank you.
It’s pretty easy with a custom
TextViewclass. Check out the Canvas guide from the documentation for more info on this. Note the comments where you can change the color/width:You can use it in a layout file by fully qualifying the view with your package, like this:
Here’s the end result: