cachapa / ExpandableLayout

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

How to put an indicator if it was expand or collapse ? #14

Closed ghost closed 7 years ago

ghost commented 7 years ago

Implement same thing like website accordion. It has an icon as indicator to whether its expand or collapse.

Here an example : https://roaderapp.com/faq.html

cachapa commented 7 years ago

Set a listener using setOnExpansionUpdateListener(OnExpansionUpdateListener listener).

The callback gives you the expansion ratio as a float from 0 (collapsed) to 1 (expanded). Simply set your bitmap accordingly.

ghost commented 7 years ago

Thanks for quick reply.