I have CardViews which contain TextViews with large amount of Text and I want to make them expandable so that the content is just shown, when its needed. For example:
Any advise?
I have CardViews which contain TextViews with large amount of Text and I want to make them expandable so that the content is just shown, when its needed. For example:
Any advise?
You just need to have a regular card with different ViewGroups. You can toggle the visibility of those ViewGroups (VISIBLE or INVISIBLE/GONE) when the user click the "expand/collapse" button.
You can try to animate those changes but it can cause you some problems if your CardView is withing a recyclerView (you'll need probably more than that one-liner in the xml to make the animations work well).