To do it programatically in a textview, untested in other views >>
TextView tv = (TextView) findViewById(R.id.mytext);
tv.setText("This is strike-thru");
tv.setPaintFlags(tv.getPaintFlags() | Paint.STRIKE_THRU_TEXT_FLAG);
More Related Contents:
- Create Passcode view in Android
- How to make links in a TextView clickable
- How to set the part of the text view is clickable
- Set color of TextView span in Android
- Is there an easy way to add a border to the top and bottom of an Android View?
- Auto-fit TextView for Android
- Is there a way to make ellipsize=”marquee” always scroll?
- Put constant text inside EditText which should be non-editable – Android
- how to make a specific text on TextView BOLD
- Android selector & text color
- Android: Coloring part of a string using TextView.setText()?
- Different font size of strings in the same TextView
- Android Swipe on List
- TextView.setTextSize behaves abnormally – How to set text size of textview dynamically for different screens
- Android intercept paste\copy\cut on editText
- Android TextView : “Do not concatenate text displayed with setText”
- Convert pixels to sp
- Whatsapp Message Layout – How to get time-view in the same row
- Android Linkify text – Spannable Text in Single Text View – As like Twitter tweet
- How can you display upside down text with a textview in Android?
- android TextView: setting the background color dynamically doesn’t work
- Set font at runtime, TextView
- Get Selected Text from TextView
- Get current visible text in textview
- Android Api 23 Change Navigation View headerLayout textview
- Apply two different font styles to a TextView
- How to wrap text in textview in Android
- How add TextView in middle of SeekBar thumb? [duplicate]
- Horizontal scrolling text in Android
- Don’t wrap text in Android TextView at period in abbreviation