title: how to setup different toolbar using navigation controller component?
body: <p>I am actually not sure, how the correct way or the best practice to set different toolbar using navigation controller component</p>
  
  <p>in my app. I want to set 2 different toolbars.</p>
  
  <ol>
  <li>green toolbar </li>
  <li>red toolbar</li>
  </ol>
  
  <p>two toolbars with different colour. this is just to simplify the case, actually I have multiple toolbars</p>
  
  <p>I am using navigation controller component. and currently on my Main Activity as the host, I set the green toolbar in my main activity using this code</p>
  
  <pre><code>        setSupportActionBar(green_toolbar)
          supportActionBar?.setDisplayShowTitleEnabled(false)
  
          // set up top hierarchy destination
          val appBarConfiguration = AppBarConfiguration(setOf(
              R.id.destination_home,
              R.id.destination_search,
              R.id.destination_user_control,
              R.id.destination_create_event)
          )
  
          green_toolbar.setupWithNavController(navController,appBarConfiguration)
  </code></pre>
  
  <p>so what is the best way to set different toolbar using navigation controller component ?</p>
  
  <p>do I have to make those 2 different toolbars in my main activity? or do I have to set fragmentY destination(that has red toolbar) as another activity not as the fragment ?</p>
  
  <p>or.... I don't know....please help :)</p>