devendroid / ReadMoreOption

Convert your TextView in ExpandableTextView with added options ReadMore/ReadLess.
Apache License 2.0
207 stars 38 forks source link

Add rich text support to handle html tags contained by the text parameter #7

Closed zsolt-szecsi closed 6 years ago

zsolt-szecsi commented 6 years ago

The currently released version does not support the displaying of the formatted text, for example if the text parameter contains html tags. I have changed the type of the incoming text parameter to CharSequence, so currently it is compatible with the simple String (let say backward compatible) and it can support the formatted text as well. I made some small change in logic to support the new type. I adapted the example application as well, so currently every second line in the list contains a formatted text.

devendroid commented 6 years ago

Thanks @zsolt-szecsi

zsolt-szecsi commented 6 years ago

@devendroid

You are welcome! Do you have the possibility to release a new version with a fixed version number which contains this fix? I would like to use your library in my project, but this feature is required and I cannot use dev version in our finalized implementation.

devendroid commented 6 years ago

I released version 1.0.2 with this fix 👍