Recall & Review
beginner
What is a Navigation Drawer in Android?
A Navigation Drawer is a sliding panel that appears from the side of the screen. It shows app navigation options and helps users switch between different sections easily.
Click to reveal answer
beginner
Which layout is commonly used as the root layout to implement a Navigation Drawer?
The DrawerLayout is used as the root layout. It allows the drawer panel to slide in and out over the main content.
Click to reveal answer
intermediate
How do you open the Navigation Drawer programmatically in Kotlin?
You call drawerLayout.openDrawer(GravityCompat.START) to open the drawer from the start (left) side.
Click to reveal answer
beginner
What is the purpose of NavigationView inside a Navigation Drawer?
NavigationView holds the menu items shown inside the drawer. It provides a consistent style and handles item clicks.
Click to reveal answer
intermediate
How do you handle item selection in a Navigation Drawer?
Implement NavigationView.OnNavigationItemSelectedListener and override onNavigationItemSelected to respond when a user taps a menu item.
Click to reveal answer
Which layout is used to create a Navigation Drawer in Android?
✗ Incorrect
DrawerLayout is the special layout that supports a sliding drawer panel.
What method opens the Navigation Drawer from the left side in Kotlin?
✗ Incorrect
openDrawer(GravityCompat.START) opens the drawer from the start (usually left) side.
Which component holds the menu items inside a Navigation Drawer?
✗ Incorrect
NavigationView is designed to display menu items inside the drawer.
How do you listen for menu item clicks in a Navigation Drawer?
✗ Incorrect
You implement OnNavigationItemSelectedListener to handle item clicks.
What is the usual gesture to open a Navigation Drawer?
✗ Incorrect
Users usually swipe from the left edge to open the drawer.
Explain how to set up a Navigation Drawer in an Android app using Kotlin.
Think about the layout structure and event handling.
You got /5 concepts.
Describe how a user interacts with a Navigation Drawer and how the app responds.
Focus on user gestures and app behavior.
You got /5 concepts.