mikepenz / MaterialDrawer

The flexible, easy to use, all in one drawer library for your Android project. Now brand new with material 2 design.
https://mikepenz.dev
Apache License 2.0
11.67k stars 2.05k forks source link

Close one ExpandableDrawerItem if another is opened #2698

Closed PembaTamang closed 3 years ago

PembaTamang commented 3 years ago

I am using the latest version 8.3.1 I am using a bunch of EDI's if I expand multiple items they all stay opened. Is there a way to close the last expanded menu if I open the next one?

mikepenz commented 3 years ago

The ExpandableExtension allows to configure of only allowing a single expanded item: https://github.com/mikepenz/FastAdapter/blob/develop/library-extensions-expandable/src/main/java/com/mikepenz/fastadapter/expandable/ExpandableExtension.kt#L100

PembaTamang commented 3 years ago

thanks a lot for this wonderful library