I have this method which works fine for an EditText or a view.

```
public SpannableString strikeThrough(String txt){

    SpannableString spannableString = new SpannableString(txt);
    StrikethroughSpan strikethroughSpan = new StrikethroughSpan();
    spannableString.setSpan(strikethroughSpan,0, txt.length(), Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
    return spannableString;

}

 EditText etChecklistItem = checklistView.findViewById(R.id.et_checklist_item);
 etChecklistItem.setText(strikeThrough(etChecklistItem.getText().toString()));

```

But my problem is after that, the text doesn't have StrikeThrough.

```
 StringBuilder stringBuilderItem = new StringBuilder();
            for( String list : itemslist) {
                stringBuilderItem.append(list);
                stringBuilderItem.append("\n");
            }

  String text = stringBuilderItem.toString();
  strikeThrough(text);
 dbHelper.insertChecklist(text);

```

When I get the data in RecyclerView, it would not be in Strikethrough.