This question already has an answer here:
- Android - Expandable TextView with Animation 12 answers
I want to add "More" functionality after three lines of text. The text contains the description which is more than 10 lines. so we have decided to add "More" after three lines of text. Like:
when the text is showing the complete description, then it should show "Less" button at the end of text which again compress the textview.
Here is a simple custom
ExpandableTextView
. Instead using See More text, it uses Compound Drawable on the Bottom:Try this may helps you working fine with me.
UPDATE : Remove UnderLine from spaneble text
1) Create Custom ClickableSpan
2) Change in
addClickablePartTextViewResizable()
methodOutPut: