ShowMoreLess icon indicating copy to clipboard operation
ShowMoreLess copied to clipboard

Not working for recyclerview

Open Usama99786 opened this issue 2 years ago • 1 comments

It works fine for a normal textview but when i use it with recyclerview. It only shows see more/ see less but they are not clickable and the color also does not change

Usama99786 avatar Mar 20 '23 09:03 Usama99786

@Usama99786 Hi, Sorry that you had no luck with text inside a recycler view with this library. This library is intended to be used on TextView as shown by the builder function's apply block: addShowMoreLess(textView = tv_first, text = tv_first.text, isContentExpanded = true)

from: addShowMoreLess(textView = tv_first, text = tv_first.text, isContentExpanded = true)

If you want items that can expand and contract inside a recycler view, maybe a better fit for your use case would be: https://github.com/florent37/ExpansionPanel . I am just suggesting but you can dig around.

pfieffer avatar Jun 28 '25 14:06 pfieffer