Navigation drawer

The navigation drawer is a UI panel that shows your app’s main navigation menu. The drawer appears when the user touches the drawer icon in the app bar or when the user swipes a finger from the left edge of the screen.
To add a navigation drawer, first declare a DrawerLayout as the root view.
Inside the DrawerLayout, add a layout for the main UI content and another view that contains the contents of the navigation drawer.

Reference:
https://developer.android.com/guide/navigation/navigation-ui

Sample pictures

Java code

XML

Leave a Reply

Your email address will not be published. Required fields are marked *