askIT

Android Navigation drawer

navigation_drawer.png Navigation drawer is a menu on the left side of a Android application. This tutorial will show you how to add a navigation drawer for your project, and how to configure it.

You will need to use Fragments to enable navigating between the diffrent menu icons. There is a tutorial on how to do this here on Nettport.com.

To find more icons for the menus you can visit material.io. Download the icons as SVG file format. Then convert them into XML at Inloop Svg2android.

1. Start by creating a new Android project.

new_project_album.png
Figure: New Android project.

2. Select API target.

target_api_24.png
Figure: Select your target. I selected API 24.

3. Select navigation drawer activity.

navigation_drawer_activity.png
Figure: Navigation drawer activity

You will now have a application that supports navigation drawer.

navigation_drawer_app_1.png navigation_drawer_app_2.png
Figure: App with navigation closed, then open

Add comment

avatar_blank_60.png

Comment:

Name:

Email:

Comments

No comments yet. You can be the first one to comment. Just write your comment in the form and click on the submit button.