Answer the question
In order to leave comments, you need to log in
How to create a ToolBar in a fragment and add a back arrow to it?
I know that in the activity the arrow is set by the command supportActionBar?.setDisplayHomeAsUpEnabled(true), but what about the toolbar in the fragment?
Answer the question
In order to leave comments, you need to log in
(activity as MainActicity).supportActionBar?.setDisplayHomeAsUpEnabled(true)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question