https://kotlinlang.org logo
#compose
Title
# compose
v

Vincent tiensi

11/20/2020, 7:33 AM
Are there plans to support two drawers in one layout? I see that
ModalDrawerLayout
supports mainly left to right (Unless RTL layout direction), but that is only for one drawer. If I want to have two drawers (Like Discord) then should I try to wrangle my own using ModalDrawerLayout as a base?
j

Joost Klitsie

11/20/2020, 7:42 AM
Did you check the material design page? The people were so nice to implement the material design components, so if a double drawer is not in there then I guess they will have little reason to make such a double drawer. But luckily, the code is open source and (hopefully) easy to understand, so nothing should stop you from creating your own implementation of it
v

Vincent tiensi

11/20/2020, 7:46 AM
Yup I did, just wanted to throw it out there. The source code is well documented so I agree it’ll probably be better to create a custom one for this use case.
c

Cedrick Cooke

11/20/2020, 8:50 PM
Have you tried using two modal drawer layouts, nested? That would be might first stab at it for a one-off custom one