Redeem Now
Read More
Read now

Change Navigation Menu Icon


In this article, we will look how we can change navigation menu icon in Android.

The Navigation icon(displayed as ☰) is actually a button in the action bar and is known as the hotdog or hamburger button.It is often placed on the top left or top right of a user interface and is so called for its resemblance to a hotdog or hamburger.

If your activity/fragment has no action bar and is using a toolbar, then changing it programmatically is very very easy and is just one line of code. You just need to add this line after you have set drawer toggle

But if you are not using any toolbar and you wish to change this icon then you need to follow a procedure and you can easily successfully replace the navigation icon.

Let’s first look at how you can change the color of the default navigation icon. For this, all you need to do is add a custom style to your styles.xml file.


And use this style in your app theme like this :

But if you wish to change the whole icon, then you need to add this line:

Hope this article helps you.

Keep coding, Keep sharing.



. . .

Comments (5)

Add Your Comment

  • Albert
    You have saved my day! but I have to create additional ActionBarDrawerToggle Class to make it works
  • Parth Agravat
    how to change navigation icon color in android
    • anchit
      Hi, you can achieve this using these lines of code.


      as explained in the blog as well.

  • prakash panthi
    what is mBinding ?
    • anchit
      mBinding is the Databinding object for the whole activity.

      If you are getting an error due to this then you can simply replace the “mBinding.drawerLayout” with findViewByid function.

      Hope this helps you.

  • css.php
    Hire Us!
    Brief us about your requirements and we'll get back to you.
    Woo! Hooy!
    We have just recieved your project brief and our expert will contact you shortly.
    Send Again