Component - Navigation drawer
A navigation drawer is a sliding panel that appears from the side of the screen. It helps users switch between different sections of the app easily, like a menu that slides out when you tap the hamburger icon.
A navigation drawer is a sliding panel that appears from the side of the screen. It helps users switch between different sections of the app easily, like a menu that slides out when you tap the hamburger icon.
DrawerLayout
├── NavigationView
│ ├── HeaderLayout
│ └── MenuItems
└── MainContent
├── Toolbar
└── ContentViewNavigation Drawer in an Android app?DrawerLayout and ActionBarDrawerToggle in an Activity?val drawerToggle = ActionBarDrawerToggle(this, drawerLayout, toolbar, R.string.open, R.string.close) drawerLayout.addDrawerListener(drawerToggle) drawerToggle.syncState()
val drawerToggle = ActionBarDrawerToggle(this, drawerLayout, toolbar, R.string.open, R.string.close) drawerToggle.syncState()
Pass the test and this pattern moves unknown