I have a TextView
which firstly shows a small portion of a long text.
The user can press a \"see more\" button to expand the TextView
and s
Now, it's even more easy to provide the requested TextView with animation and all the required controls using this awesome library ExpandableTextView, in this library you have only to add it into your gradle and then define it like the following in your xml:
and after that use it in your code like:
TextView expandableTextView = (ExpandableTextView) findViewById(R.id.expand_text_view);
And as you see you can control the max lines you want and the animation duration and all the required settings for your TextView expand technique.