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

amar_1995

01/09/2020, 6:24 AM
I am trying to make navigation drawer(sidebar) using
ModelDrawerLayout
. Now, I have some question regarding implementation. 1. Is there anyway to resize the size of navigation drawer. 2. Is there any way to navigate inside navigation drawer. Here navigate means if I tap on some item(inside navigation drawer) it navigate to sub-item inside navigation drawer. For example, there is setting item inside navigation bar if tap on it will navigate to sub-menu inside same navigation bar.
m

matvei

01/09/2020, 12:21 PM
Hey, thanks for trying it 🙂 1. If you want to make drawer smaller (more empty space on the right side), I'm afraid it's not really possible right now. ModalDrawerLayout now strictly follows material guidelines, and these guidelines say that there should be 56.dp padding for open drawer. I will think how to make it more flexible in the future. 2. What is now working in your case? I imagine it will be no different from any other composable. Drawer provides a slot for it's content, so you can put anything inside and it should work, e.g. animation, navigation, etc. Let me know if this is not the case
a

amar_1995

01/10/2020, 11:07 AM
I had able to do second part. And resizing of ModelDrawerLayout is not possible for now.
4 Views