How to implement a two-level menu using Android Navigation Drawer?

How can we implement two levels of menus using Android Navigation Drawer. It should work like this 1. When the user opens the navigation box, the patent menu opens. (Screenshot 1) 2. As soon as the user clicks on a specific item. The submenu associated with this item will be opened with the possibility of expansion. [The parent menu will shift to the left, and the submenu will appear with the right shift] with the option to return. (Screenshot 2) enter image description here enter image description here I tried another solution, for example using ListItem visibility, etc.

+5
source share

Source: https://habr.com/ru/post/1245762/


All Articles