title: How to hide actionbar in some fragments with Android Navigation Components?
body: <p>I am using android navigation components to navigate fragments.
  I can easily set action bar by using this code in the Main Activity :</p>
  
  <pre><code>    NavController navController = Navigation.findNavController(this, R.id.nav_host_fragment);
      NavigationUI.setupActionBarWithNavController(this, navController, appBarConfiguration);
  </code></pre>
  
  <p>But If I want to hide the supportActionbar in some of the fragments then what should be the best approach?</p>