title: Changing Navigation drawer hamburger icon
body: <p>I am trying to change hamburger menu icon for <code>NavigationView</code> but I am unable to do so.</p>
  
  <p>Here is what I have tried so far</p>
  
  <p>I have a base activity where nav drawer setup is done. Here is relevant piece of code </p>
  
  <pre><code>@Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      super.setContentView(R.layout.activity_base_nav);
      setSupportActionBar(toolbar);
      setupDrawer();
  }
  
  private void setupDrawer() {
      mDrawerLayout.setDrawerListener(this);
  
      mDrawerToggle = new ActionBarDrawerToggle(this,
              mDrawerLayout,
              R.string.open,
              R.string.close);
  
      mDrawerToggle = new ActionBarDrawerToggle(mContext,
              mDrawerLayout,
              R.string.open,
              R.string.close);
  
      mDrawerLayout.setDrawerListener(mDrawerToggle);
  
      if (getSupportActionBar() != null) {
          getSupportActionBar().setDisplayHomeAsUpEnabled(true);
          getSupportActionBar().setDefaultDisplayHomeAsUpEnabled(false);
          mDrawerToggle.setDrawerIndicatorEnabled(false);
         mDrawerToggle.setHomeAsUpIndicator(R.drawable.ic_share_48pt_2x);
      }
      mDrawerToggle.syncState();
  
      mNavigationView.setNavigationItemSelectedListener(
              menuItem -&gt; {
                  mMenuItem = menuItem.getItemId();
                  mDrawerUtil.onNavMenuItemClicked(mMenuItem);
                  mDrawerLayout.closeDrawers();
                  return true;
              });
  }
  
  @Override 
  public void setContentView(int layoutResID) {
      getLayoutInflater().inflate(layoutResID, mContainer);
  }
  
  
  @Override
  protected void onPostCreate(Bundle savedInstanceState) {
      super.onPostCreate(savedInstanceState);
      mDrawerToggle.syncState();
  }
  
  @Override
  public void onConfigurationChanged(Configuration newConfig) {
      super.onConfigurationChanged(newConfig);
      mDrawerToggle.onConfigurationChanged(newConfig);
  }
  
  @Override
  public boolean onOptionsItemSelected(MenuItem item) {
      if (mDrawerToggle.onOptionsItemSelected(item)) {
          return true;
      }
  
      return super.onOptionsItemSelected(item);
  }
  </code></pre>
  
  <p>However it doesn't seem to be working for me. I have also tried calling <code>setDrawerIndicatorEnabled(false)</code> and <code>setHomeAsUpIndicator(R.drawable.ic_share_48pt_2x)</code> on <code>SupportActionBar</code> but that also doesn't work.</p>