![how to strikethrough text android how to strikethrough text android](https://storage.googleapis.com/telesite-prod/photos/91a1a720-cf5d-11ea-aab1-7bc436a38979-feed670-670-x.jpeg)
#HOW TO STRIKETHROUGH TEXT ANDROID ANDROID#
To use the text format tool, click the “Format” tab in the toolbar. Using Strike Android TextView StrikeThrough XML example. If you have Gboard as your default keyboard type a text, highlight the text and click on the Strikethrough option to Strikethrough a text. Once selected, you can apply strikethrough to the text using two different methods-the text format tool or via keyboard shortcut. The text is highlighted blue when selected. Select the desired text by clicking and dragging your cursor over it. Open Compose and then select the text that you want to Strikethrough Then click on the format settings and click on the drop-down button More Formatting.
![how to strikethrough text android how to strikethrough text android](https://flutter-examples.com/wp-content/uploads/2021/07/StrikeThrough_android.png)
![how to strikethrough text android how to strikethrough text android](https://i.ytimg.com/vi/zrZu5lTNYkw/maxresdefault.jpg)
To get started, open the Google Docs file that contains the text you would like to apply strikethrough to. There’s arguably nothing more satisfying than crossing out items on a to-do list-and Google Docs is a great place to maintain these lists since it can be used on almost any device. Striking through items on your to-do list instead of deleting them allows you to visualize what you’ve accomplished for the day. One of the most common document types that this would apply to is a to-do list. So here is the complete step by step tutorial for Add StrikeThrough text in android textview programmatically. Note that we are going to implement this project using the Java language. It is used to display recently type written or non erasable text and its also used to display recently deleted information on web page or android application. StrikeThrough text means text cut by horizontal straight line at above of it center. Strikethrough is useful even in scenarios where you’re the only one looking at the document. Set normal text style to StrikeThrough on button click via MainActivity.java programming coding file. If you instead delete the text, the others may not know what changed. For example, if you’re collaborating on a document with other people and want to emphasize text that should be removed, you can apply strikethrough to the text. This type of text formatting is useful in a number of scenarios. When you apply strikethrough to text, it draws a line through the words but keeps the text visible underneath. Why Apply Strikethrough to Text When You Can Delete It? This is the simplest method you just have to set strikethrough flag on your TextView as, tPaintFlags (Paint.STRIKETHRUTEXTFLAG) it will strike through your TextView.