title: Android Toolbar with both home and back button
body: <p>Is it possible to display both home icon and back icon in the toolbar? 
  1) Is it possible change the order of display of back button icon and home icon.
  Currently it displays the arrow button first and then the logo (home button)</p>
  
  <p>2) Second requirement is to clear the activity stack on clicking the home icon and going back to previous screen in case of back button.</p>
  
  <p>I have the following code which will display a arrow back key and home icon which is set as logo. Is it possible to handle click events on both these icons:</p>
  
  <pre><code>Toolbar toolbar = (Toolbar)findByViewID(R.id.toolbar);
  toolbar.setNavigationIcon(R.drwable.btn_back);
  setSuppportActionBar(toolbar);
  getSupportActionBar().setLogo(R.drawable.home_icon);
  getSupportActionBar().setDisplayShowTitleEnabled(false);
  getSupportActionBar().setHomeButtonEnabled(true);
  getSupportActionBar().setDisplayHomeAsUpEnabled(true);
  </code></pre>
  
  <p>I am able to handle to the click on arrow icon by handling it in onOptionsITemSelected method. 
  Is there a way to handle click on logo icon? 
  My idea is to use the home button click to clear the stack of activities and use the back button to navigate back to previous screen.</p>
  
  <p>I tried with </p>
  
  <pre><code>toolbar.setNavigationOnClickListener() 
  </code></pre>
  
  <p>but it has no effect on back button click.</p>
  
  <p>Handling android.R.id.home works when handled in </p>
  
  <pre><code>onOptionsItemSelected()
  </code></pre>