cachapa / ExpandableLayout

An expandable layout container for Android
Apache License 2.0
2.34k stars 273 forks source link

How to show a bit of the layout in the collapsed state #68

Closed Hayk985 closed 6 years ago

Hayk985 commented 6 years ago

Hi. I want to show a bit of the layout in the collapsed state. Example I want to show first 4 comments of user and then expand to view more. So how can I do it? I saw the library methods and there is one method called setExpansion(float value). But 1) this is not for collapse state, 2) this method expands and shows only the last part of the view (imagine I have recyclerView in my expandableLayout), 3) After collapse or expand or toggle the setExpansion() method not works.

cachapa commented 6 years ago

Closing as duplicate of #35