title: Android - How to add id to Toolbar back button?
body: <p>For automated testing purposes I need to add <strong>ID</strong> to toolbar's <strong>BACK / MENU</strong> button view. </p>
  
  <p>I tried to add id using <code>getChildAt</code> and <code>setId</code> but the id is still not set when I check the view hierarchy. <code>android.R.id.home</code> menu id does not work in my case. I need id that is set for the view when I check the view hierarchy with <strong>Layout inspector</strong>. Only then the id can be used for automated UI tests.</p>
  
  <p>Could you suggest a way to do this?</p>