-1

I am using the new navigation from android jetpack. In my nav graph I got my LoginFragment as start destination and my MainActivity as host. When I run the app the LoginFragment gets displayed. My question:

How can I navigate to other destinations from this fragment? I don't know how to access the navigation controller from a fragment.

Phil90
  • 138
  • 1
  • 16

1 Answers1

-4

The Navigation component codelab explains in details how to navigate between fragments.

LiA
  • 356
  • 4
  • 5