My requirement:
I want strike the particular strings in my textview.
Please take a look at the image below. In project 2 box task 8,task 5,task 1,task 3 are striked.
What I am tried:
After refer this SO question,
I can strike whole text view. (but I can`t strike particular string wise)
TextView tv = (TextView) findViewById(R.id.mytext);
tv.setText("This is strike-thru");
tv.setPaintFlags(tv.getPaintFlags() | Paint.STRIKE_THRU_TEXT_FLAG);
My problem:
1.I want to strike the particular strings only.
2.Not entire textbox.