MultiColorTextView icon indicating copy to clipboard operation
MultiColorTextView copied to clipboard

setText append new text with previous one

Open reversecoder opened this issue 7 years ago • 1 comments

Hello,

Firstly thanks for this beautiful library.

I have tried your library. But found one issue. If I want to set text programmatically using setText for more than one time, it just append new text with previous one. And I solved this issue adding removeAllViews() at the starting of renderText method. I think this is a serious issue. Please fix this at new release.

private fun renderText() { removeAllViews()

................. }

Thanks, Rashed

reversecoder avatar Nov 12 '17 11:11 reversecoder

@ha-yi The issue reversecoder is very easily reproducible when updating the text of the same text view. The solution proposed is also correct.

subbramanil avatar Oct 02 '20 01:10 subbramanil