cachapa / ExpandableLayout

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

Setting expansion level smoothly? #55

Closed najmsheikh closed 6 years ago

najmsheikh commented 6 years ago

I was trying to emulate a semi collapsed/expanded view - similar to how Google Play Store uses READ MORE / READ LESS for its app descriptions page.

I set it up so that the expansion level is set to 20% using the setExpansion() method. However, the state change is rather abrupt. I realize this is intended behavior but is there a way to pass an expansion level and it smoothly expands/collapses to that point?

cachapa commented 6 years ago

Currently not. The only way to achieve this currently would be to use your own animator. I'm closing this issue as it's a duplicate of #35.