Kotlin - Handling Back Button Click In Navigation Drawer - Android
I have implemented Navigation Drawer in android. Working fine. onBackPressed method is also implemented. Working fine. Now, I want same onBackPressed() method's functionality on Ba
Solution 1:
If your toolbar is OK, you can use the following to go back one with NavComponent.
findNavController().popBackStack()
If there is a problem with your toolbar, please share the relevant codes.
Post a Comment for "Kotlin - Handling Back Button Click In Navigation Drawer - Android"