I\'m trying to set the toolbar title dynamically, I don\'t know if it\'s possible or not.
Assume I have list of items every item I clicked it\'s open new fragment,
you can add a method for updating the fragment title and call it in fragment onStart() method
fun updateToolbarTitle(title: String) { supportActionBar?.title = title }
and remove lable attribute from tag in your nav_graph.xml so it'll be like that