Implementing proper back navigation and home button handling using Toolbar in Android
<p>I am using a single activity and multiple fragments(screenshot attached) within the same activity to provide a seamless navigation. But after implementing the latest toolbar and navigation view, it seems hard to handle the navigation and home buttons. I am having trouble with the following things.</p>

<ul>
<li>Managing the Hamburger/Back button at left top. Toggling the icon and functionality to Menu and Back nav.

<ul>
<li>Page title - Changing the page titles whenever a fragment in pushed and popped.</li>
</ul></li>
</ul>

<p>I have tried several things like overriding onBackPressed(), setHomeAsUpIndicator, popping fragments manually. Earlier i was using ActionBarDrawer toggle to handle this but it is failing somehow now. I checked the google samples they seem to use separate activities at most of the places.</p>

<p>Can anyone guide me how to implement a proper back navigation to handle the NavigationView, Back button in inner fragments and page titles? I am using <strong>AppCompatActivity</strong>, <strong>android.app.Fragment</strong>, <strong>NavigationView</strong> and <strong>Toolbar</strong>.</p>

<p><a href="https://i.stack.imgur.com/EnAbF.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/EnAbF.jpg" alt="Fragment 1 -&gt; Fragment 2 -&gt; Fragment 3"></a></p>