Hello. I have two sections section 0 and section 1. I wanna customise section 1 textview as strikethrough. I tried to this like below but doesnt success. Is anyone help me to do this. Thank you.
@Override
public void onBindItemViewHolder(RecyclerView.ViewHolder holder, int position) {
final ItemViewHolder itemHolder = (ItemViewHolder) holder;
itemHolder.tv.setText(list.get(position));
itemHolder.imgItem.setImageResource(imgPlaceholderResId);
if (sectionAdapter.getSection(1).getContentItemsTotal() > 0) {
itemHolder.tv.setPaintFlags(itemHolder.tv.getPaintFlags() | Paint.STRIKE_THRU_TEXT_FLAG);
}
}
Hello. I have two sections section 0 and section 1. I wanna customise section 1 textview as strikethrough. I tried to this like below but doesnt success. Is anyone help me to do this. Thank you.