title: Android toolbar back arrow with icon like WhatsApp
body: <p>How to display icon with back arrow in android toolbar like WhatsApp ?</p>
  
  <p>I use below code to set back arrow &amp; icon in toolbar.</p>
  
  <pre><code> toolbar = (Toolbar) findViewById(R.id.toolbar);
   setSupportActionBar(toolbar);
   getSupportActionBar().setDisplayHomeAsUpEnabled(true);
   getSupportActionBar().setDisplayShowHomeEnabled(true);
   getSupportActionBar().setHomeButtonEnabled(true);
   toolbar.setLogo(icon);
  </code></pre>
  
  <p>but i got result as below image.</p>
  
  <p><a href="https://i.stack.imgur.com/cdA98.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/cdA98.jpg" alt="enter image description here"></a> </p>
  
  <p>I want icon immediate next after back arrow. I don't want any gap between back arrow &amp; icon like below image of WhatsApp.</p>
  
  <p><a href="https://i.stack.imgur.com/sh8f9.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/sh8f9.jpg" alt="enter image description here"></a></p>
  
  <p>How to set icon with back arrow in toolbar like WhatsApp ?</p>